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 trend (30 days)EPSS over the last 30 days for CVE-2026-40991: held from 0.002 to 0.003.

EPSS over last 30 days · oldest: 0.002 · newest: 0.003 · change: +0.001

Affected products

Weakness classification (CWE)

References

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.