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.
{
"cna_assigner": "vmware",
"cwe_ids": [
"CWE-611"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40991.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.0.1"
},
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.5.1"
},
{
"introduced": "2.0.0.RELEASE"
},
{
"fixed": "2.0.9.RELEASE"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.5"
},
{
"introduced": "2.0.0.RELEASE"
},
{
"fixed": "2.0.8.RELEASE"
}
],
"source": "DESCRIPTION"
}
]
}{
"cpe": "cpe:2.3:a:broadcom:spring_rest_docs:4.0.0:-:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "4.0.0-NA"
},
{
"last_affected": "4.0.0-NA"
}
],
"source": "CPE_STRING"
}