XML External Entity (XXE) injection when documenting untrusted XML content
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Spring | Spring REST Docs | unaffected |
|
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Spring | Spring Rest Docs |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-6rpq-6vv2-5222 | Spring REST Docs REST Assured & WebFlux are vulnerable to Improper Restriction of XML External Entity Reference |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.223% probability within 30 days)
| Link | Providers |
|---|---|
| https://spring.io/security/cve-2026-40991 |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Spring
Spring spring Rest Docs |
|
| Vendors & Products |
Spring
Spring spring Rest Docs |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | XML External Entity (XXE) injection when documenting untrusted XML content | |
| Weaknesses | CWE-611 | |
| References |
| |
| Metrics |
cvssV3_1
|