# CVE-2025-22235: Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed

> CVE-2025-22235: Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed. CVSS 7.3 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-22235
Last updated: 2026-06-17T08:45:48Z

- Published: 2025-04-28 07:10 UTC · Updated: 2026-06-17 08:45 UTC · Assigner: vmware
- CVSS: 7.3 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- EPSS: 0.43%, 37th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-20

## Description

EndpointRequest.to() creates a matcher for null/\*\* if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed. Your application may be affected by this if all the following conditions are met:   \*  You use Spring Security   \*  EndpointRequest.to() has been used in a Spring Security chain configuration   \*  The endpoint which EndpointRequest references is disabled or not exposed via web   \*  Your application handles requests to /null and this path needs protection You are not affected if any of the following is true:   \*  You don't use Spring Security   \*  You don't use EndpointRequest.to()   \*  The endpoint which EndpointRequest.to() refers to is enabled and is exposed   \*  Your application does not handle requests to /null or this path does not need protection

## Affected vendors and products

- Spring: Spring Boot

## Tracked companies

- [Bitbucket](https://rewindex.com/company/bitbucket.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-22235)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-22235)
- [https://spring.io/security/cve-2025-22235](https://spring.io/security/cve-2025-22235)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-22235 · Markdown: https://rewindex.com/cve/CVE-2025-22235.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-22235 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:11:18.569Z
