CVE-2026-40991: broadcom spring_rest_docs
Vulnerability summary
CVE-2026-40991 is a medium (CVSS 5.9) vulnerability in broadcom spring_rest_docs. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 20.5% of scored vulnerabilities.
Timeline
- 09-06-2026PublishedVulnerability first disclosed.
- 27-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
- NVDNIST5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
EPSS trend
Probability
0.29%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
+0.07 pp
From 0.22% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Org.springframework.restdocs2 products
- spring-restdocs-restassured≥ 4.0.0, < 4.0.1 | ≥ 3.0.0, < 3.0.6 | ≤ 2.0.8.RELEASE
- spring-restdocs-webtestclient≥ 4.0.0, < 4.0.1 | ≥ 3.0.0, < 3.0.6 | ≤ 2.0.8.RELEASE
Broadcom1 product
- spring_rest_docs≥ 2.0.0, < 2.0.9 | ≥ 3.0.0, < 3.0.5.1 | 4.0.0
Spring1 product
- spring rest docs≥ 4.0.0, < 4.0.0.1 | ≥ 3.0.0, < 3.0.5.1 | ≥ 2.0.0.RELEASE, < 2.0.9.RELEASE
3 vendors · 4 products