CVE-2026-40991
Last modified
CVE-2026-40991 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. When using spring-restdocs-webtestclient or spring-restdocs-restassured to document a remote API accessed over HTTP, an attacker who compromises the API or tricks the user into documenting a malicious API can perform an XXE injection attack when the documentation-generating tests are next executed. Affected versions: Spring REST Docs 4.0.0; 3.0.0 through 3.0.5; 2.0.0.RELEASE through 2.0.8.RELEASE.. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
Description
When using spring-restdocs-webtestclient or spring-restdocs-restassured to document a remote API accessed over HTTP, an attacker who compromises the API or tricks the user into documenting a malicious API can perform an XXE injection attack when the documentation-generating tests are next executed. Affected versions: Spring REST Docs 4.0.0; 3.0.0 through 3.0.5; 2.0.0.RELEASE through 2.0.8.RELEASE.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Broadcom | Spring Rest Docs | >= 2.0.0, < 2.0.9 |
| Broadcom | Spring Rest Docs | >= 3.0.0, < 3.0.5.1 |
| Broadcom | Spring Rest Docs | 4.0.0 |
References
- https://spring.io/security/cve-2026-40991Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40991?
How severe is CVE-2026-40991?
How do I fix CVE-2026-40991?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40985Applications that configure the WebFlowELExpressionParser ar…6.4
- CVE-2026-40986Spring Web Flow's JavaScript RemotingHandler renders the bod…4.8
- CVE-2026-40987A malicious or compromised FTP/SFTP/SMB server can write arb…7.1
- CVE-2026-40988An application using spring-security-saml2-service-provider …7.5
- CVE-2026-40989Under infinite recursion in the routing layer, request-handl…6.5
- CVE-2026-40990OOM error is possible while attempting to add infinite amoun…6.5
- CVE-2026-40992Spring Boot's Mail auto-configuration does not enable hostna…5
- CVE-2026-40993An attacker with write permissions to the database table man…7.2
- CVE-2026-40994Wss4jSecurityInterceptor initialized its BSP (WS-I Basic Sec…8.2
- CVE-2026-40995X509AuthenticationProvider could issue a fully authenticated…5.4
- CVE-2026-40996Wss4jSecurityInterceptor defaulted allowRSA15KeyTransportAlg…4.8
- CVE-2026-40997Several Spring WS integration paths with Spring Security cou…5.3
Are you affected by CVE-2026-40991?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
