CVE-2026-40991 XML External Entity (XXE) injection when documenting untrusted XML content
MediumCVSS 5.9
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
4 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| broadcom spring rest docs | = 4.0.0; >= 2.0.0, < 2.0.9; >= 3.0.0, < 3.0.5.1 | 2.0.9, 3.0.5.1 | Fixed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | <= 2.0.8.RELEASE; = 1.1.0.RELEASE; = 1.1.1.RELEASE; = 1.1.2.RELEASE +27 more | 3.0.6, 4.0.1 | Fixed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | <= 2.0.8.RELEASE; = 2.0.0.RELEASE; = 2.0.1.RELEASE; = 2.0.2.RELEASE +16 more | 3.0.6, 4.0.1 | Fixed |
| Spring REST Docs | >= 2.0.0.RELEASE, < 2.0.9.RELEASE; >= 3.0.0, < 3.0.5.1; >= 4.0.0, < 4.0.0.1 | 2.0.9.RELEASE, 3.0.5.1, 4.0.0.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | >= 4.0.0, < 4.0.1 | 4.0.1 |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 4.0.0 | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | >= 3.0.0, < 3.0.6 | 3.0.6 |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 3.0.0 | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 3.0.1 | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 3.0.2 | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 3.0.3 | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 3.0.4 | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 3.0.5 | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | <= 2.0.8.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 2.0.0.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 2.0.1.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 2.0.2.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 2.0.3.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 2.0.4.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 2.0.5.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 2.0.6.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 2.0.7.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | = 2.0.8.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | >= 4.0.0, < 4.0.1 | 4.0.1 |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 4.0.0 | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | >= 3.0.0, < 3.0.6 | 3.0.6 |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 3.0.0 | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 3.0.1 | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 3.0.2 | No fix listed |
Show 32 more
| Product | Affected versions | Fixed in |
|---|---|---|
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 3.0.3 | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 3.0.4 | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 3.0.5 | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | <= 2.0.8.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.1.0.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.1.1.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.1.2.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.1.3.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.2.0.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.2.1.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.2.2.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.2.3.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.2.4.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.2.5.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 1.2.6.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 2.0.0.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 2.0.1.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 2.0.2.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 2.0.3.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 2.0.4.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 2.0.5.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 2.0.6.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 2.0.7.RELEASE | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | = 2.0.8.RELEASE | No fix listed |
| Spring REST Docs | >= 4.0.0, < 4.0.0.1 | 4.0.0.1 |
| Spring REST Docs | >= 3.0.0, < 3.0.5.1 | 3.0.5.1 |
| Spring REST Docs | >= 2.0.0.RELEASE, < 2.0.9.RELEASE | 2.0.9.RELEASE |
| org.springframework.restdocs/spring-restdocs-webtestclient(Maven) | >= 3.0.0, <= 3.0.5 | No fix listed |
| org.springframework.restdocs/spring-restdocs-restassured(Maven) | >= 3.0.0, <= 3.0.5 | No fix listed |
| broadcom spring rest docs | >= 2.0.0, < 2.0.9 | 2.0.9 |
| broadcom spring rest docs | >= 3.0.0, < 3.0.5.1 | 3.0.5.1 |
| broadcom spring rest docs | = 4.0.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- github.com
- spring.io vendor-advisory
- github.com