Back to CVE records
Medium 5.9Published Jun 9, 2026

CVE-2026-40991XML External Entity (XXE) injection when documenting untrusted XML content

Updated under an hour ago ()

Does this affect you?

It affects Spring REST Docs and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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
5.9 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
Weakness (CWE)
CWE-611
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
vmware
NVD analysis
Analyzed
Record last updated
Jun 27, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
Spring Spring REST Docs
spring:rest_docs (from the name)
from 4.0.0 before 4.0.0.1; from 3.0.0 before 3.0.5.1; from 2.0.0.RELEASE before 2.0.9.RELEASE
CNA record
broadcom spring_rest_docs
broadcom:spring_rest_docs
from 2.0.0 before 2.0.9; from 3.0.0 before 3.0.5.1; 4.0.0
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.