XML External Entity (XXE) injection when documenting untrusted XML content
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| VMware | Spring REST Docs | 4.0.0 to before 4.0.0.1; 3.0.0 to before 3.0.5.1; 2.0.0.RELEASE to before 2.0.9.RELEASE | 4.0.0.1, 3.0.5.1, 2.0.9.RELEASE | Patch available | CNA |
| — | org.springframework.restdocs:spring-restdocs-webtestclient (Maven) | 4.0.0 to before 4.0.1 | 4.0.1 | Patch available | GHSA-6rpq-6vv2-5222 |
| — | org.springframework.restdocs:spring-restdocs-webtestclient (Maven) | 3.0.0 to before 3.0.6 | 3.0.6 | Patch available | GHSA-6rpq-6vv2-5222 |
| — | org.springframework.restdocs:spring-restdocs-webtestclient (Maven) | up to 2.0.8.RELEASE | — | No fix listed | GHSA-6rpq-6vv2-5222 |
| — | org.springframework.restdocs:spring-restdocs-restassured (Maven) | 4.0.0 to before 4.0.1 | 4.0.1 | Patch available | GHSA-6rpq-6vv2-5222 |
| — | org.springframework.restdocs:spring-restdocs-restassured (Maven) | 3.0.0 to before 3.0.6 | 3.0.6 | Patch available | GHSA-6rpq-6vv2-5222 |
| — | org.springframework.restdocs:spring-restdocs-restassured (Maven) | up to 2.0.8.RELEASE | — | No fix listed | GHSA-6rpq-6vv2-5222 |
- Spring REST Docs VendorVMware Affected 4.0.0 to before 4.0.0.1; 3.0.0 to before 3.0.5.1; 2.0.0.RELEASE to before 2.0.9.RELEASE Fixed in 4.0.0.1, 3.0.5.1, 2.0.9.RELEASE Patch available CNA
- org.springframework.restdocs:spring-restdocs-webtestclient (Maven) Vendor— Affected 4.0.0 to before 4.0.1 Fixed in 4.0.1 Patch available GHSA-6rpq-6vv2-5222
- org.springframework.restdocs:spring-restdocs-webtestclient (Maven) Vendor— Affected 3.0.0 to before 3.0.6 Fixed in 3.0.6 Patch available GHSA-6rpq-6vv2-5222
- org.springframework.restdocs:spring-restdocs-webtestclient (Maven) Vendor— Affected up to 2.0.8.RELEASE Fixed in — No fix listed GHSA-6rpq-6vv2-5222
- org.springframework.restdocs:spring-restdocs-restassured (Maven) Vendor— Affected 4.0.0 to before 4.0.1 Fixed in 4.0.1 Patch available GHSA-6rpq-6vv2-5222
- org.springframework.restdocs:spring-restdocs-restassured (Maven) Vendor— Affected 3.0.0 to before 3.0.6 Fixed in 3.0.6 Patch available GHSA-6rpq-6vv2-5222
- org.springframework.restdocs:spring-restdocs-restassured (Maven) Vendor— Affected up to 2.0.8.RELEASE Fixed in — No fix listed GHSA-6rpq-6vv2-5222
Remediation
- Fix · CNA Spring REST Docs (Spring) Fixed in 4.0.0.1, 3.0.5.1, 2.0.9.RELEASE
- Fix · GHSA-6rpq-6vv2-5222 org.springframework.restdocs:spring-restdocs-webtestclient (Maven) Fixed in 4.0.1 Advisory →
- Fix · GHSA-6rpq-6vv2-5222 org.springframework.restdocs:spring-restdocs-webtestclient (Maven) Fixed in 3.0.6 Advisory →
- Fix · GHSA-6rpq-6vv2-5222 org.springframework.restdocs:spring-restdocs-restassured (Maven) Fixed in 4.0.1 Advisory →
- Fix · GHSA-6rpq-6vv2-5222 org.springframework.restdocs:spring-restdocs-restassured (Maven) Fixed in 3.0.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40991
- 2026-10-03 Alias added: GHSA-6rpq-6vv2-5222
References
More VMware vulnerabilities
- TI-2026-42442 vCenter directory-traversal vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26040 Privilege escalation in VMware vCenter Server KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26039 Heap-overflow in VMware vCenter Server KEVCVSS 3.1CRITICAL 9.8
- TI-2024-24610 Out-of-bounds write in VMware vCenter Server KEVCVSS 3.1CRITICAL 9.8
- TI-2023-16914 VMware vCenter Server Out-of-Bounds Write Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2023-07303 Command injection in Aria Operations for Networks KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-40991 · CVE Program
- CVE-2026-40991 · NVD
- FIRST EPSS
- GHSA-6rpq-6vv2-5222 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences