CVE-2026-40991
Received
Received - Intake
XXE Injection in Spring REST Docs
Publication date: 2026-06-10
Last updated on: 2026-06-10
Assigner: VMware
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| spring_project | spring_rest_docs | to 4.0.0 (inc) |
| spring_project | spring_rest_docs | to 3.0.5 (inc) |
| spring_project | spring_rest_docs | to 2.0.9.release (exc) |
| spring_project | spring_rest_docs | to 3.0.6 (exc) |
| spring_project | spring_rest_docs | to 4.0.1 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-611 | The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. |