CVE-2026-40991
published medium CVSS 3.1 · 5.9XML External Entity (XXE) injection when documenting untrusted XML content
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Spring | — | Spring REST Docs4.0.0 to < 4.0.0.1 · 3.0.0 to < 3.0.5.1 · 2.0.0.RELEASE to < 2.0.9.RELEASE · Other versions: unaffected | Affected | Not stated | vmware |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- vmware · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Spring | Spring REST Docs | 4.0.0 to < 4.0.0.1 (affected · custom)3.0.0 to < 3.0.5.1 (affected · custom)2.0.0.RELEASE to < 2.0.9.RELEASE (affected · custom)Default: unaffected | vmware · cna |
Weaknesses
1- CWE-611 CWE-611: Improper Restriction of XML External Entity Reference
References
1Provider assertions
2vmware · cna
XML External Entity (XXE) injection when documenting untrusted XML content
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4b2e03831c68b9d22c3f77cdf504fef5aad830409f00d8cc81189cf11b38ca47
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record