XML External Entity (XXE) injection when documenting untrusted XML content (Spring Spring REST Docs)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 13 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- vmware
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-611 — Improper Restriction of XML External Entity Reference
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L | vmware |
| CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L | NVD · security@vmware.com (Secondary) |
Advisories
- GHSA-6rpq-6vv2-5222 — Spring REST Docs REST Assured & WebFlux are vulnerable to Improper Restriction of XML External Entity Reference
European references
- ENISA EUVD · EUVD-2026-35885
- GCVE · GCVE-0-2026-40991
CERT-FR advisories
- CERTFR-2026-AVI-0705 — Multiples vulnérabilités dans les produits Spring · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:broadcom:spring_rest_docs:*:*:*:*:*:*:*:*≥ 2.0.0 < 2.0.9cpe:2.3:a:broadcom:spring_rest_docs:*:*:*:*:*:*:*:*≥ 3.0.0 < 3.0.5.1cpe:2.3:a:broadcom:spring_rest_docs:4.0.0:-:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| Spring · Spring REST Docs | affected 4.0.0 < 4.0.0.1 ; affected 3.0.0 < 3.0.5.1 ; affected 2.0.0.RELEASE < 2.0.9.RELEASE |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |