XXE in Broadcom Spring Rest Docs
CVE-2026-40991
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.
Vulnerability class: XXE (XML External Entity)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L.
EPSS exploit prediction
EPSS: 0.003 (19.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 20th percentile — 19.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.003 · change: +0.001
Affected products
- Broadcom Spring Rest Docs — versions 4.0.0
- Spring Rest Docs — versions 4.0.0, 3.0.0, 2.0.0.RELEASE
Weakness classification (CWE)
References
- spring.io/security/cve-2026-40991 (Vendor Advisory)
Frequently asked questions
- What is CVE-2026-40991?
- CVE-2026-40991 is a medium-severity vulnerability in Broadcom Spring Rest Docs, classified under Improper Restriction of XML External Entity Reference (XXE). CVSS score: 5.9/10. Published 2026-06-10.
- How severe is CVE-2026-40991?
- Medium severity. CVSS v3 base score is 5.9 out of 10.