Spring REST Docs REST Assured & WebFlux are vulnerable to Improper Restriction of XML External Entity Reference
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.springframework.restdocs:spring-restdocs-restassured | >= 4.0.0, < 4.0.1, >= 3.0.0, < 3.0.6, <= 2.0.8.RELEASE | 4.0.1, 3.0.6 |
| Java / Kotlin (Maven) | org.springframework.restdocs:spring-restdocs-webtestclient | >= 4.0.0, < 4.0.1, >= 3.0.0, < 3.0.6, <= 2.0.8.RELEASE | 4.0.1, 3.0.6 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L- Weakness (CWE)
CWE-611- Platform
- Java / Kotlin (Maven)
- Package
org.springframework.restdocs:spring-restdocs-restassured, org.springframework.restdocs:spring-restdocs-webtestclient- Disclosed
- 10.06.2026
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-6rpq-6vv2-5222 - CC BY 4.0
Vulnerability history: org.springframework.restdocs:spring-restdocs-restassured
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.