{"id":"CVE-2026-40991","state":"PUBLISHED","title":"XML External Entity (XXE) injection when documenting untrusted XML content","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.\n\nAffected versions:\nSpring REST Docs 4.0.0; 3.0.0 through 3.0.5; 2.0.0.RELEASE through 2.0.8.RELEASE.","publishedAt":"2026-06-09T23:46:33.676Z","updatedAt":"2026-06-27T21:10:14.865Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L","source":"vmware"},"assigner":"vmware","products":["Spring Spring REST Docs"],"affected":[{"vendor":"Spring","product":"Spring REST Docs","defaultStatus":"unaffected","versions":[{"version":"4.0.0","status":"affected","lessThan":"4.0.0.1","versionType":"custom"},{"version":"3.0.0","status":"affected","lessThan":"3.0.5.1","versionType":"custom"},{"version":"2.0.0.RELEASE","status":"affected","lessThan":"2.0.9.RELEASE","versionType":"custom"}]}],"references":["https://spring.io/security/cve-2026-40991"],"weaknesses":["CWE-611"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/40xxx/CVE-2026-40991.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40991","state":"PUBLISHED","datePublished":"2026-06-09T23:46:33.676Z","dateUpdated":"2026-06-27T21:10:14.865Z","assignerShortName":"vmware","assignerOrgId":"dcf2e128-44bd-42ed-91e8-88f912c1401d","dateReserved":"2026-04-16T02:19:09.389Z"},"containers":{"cna":{"title":"XML External Entity (XXE) injection when documenting untrusted XML content","descriptions":[{"lang":"en","value":"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.\n\nAffected versions:\nSpring REST Docs 4.0.0; 3.0.0 through 3.0.5; 2.0.0.RELEASE through 2.0.8.RELEASE."}],"affected":[{"vendor":"Spring","product":"Spring REST Docs","defaultStatus":"unaffected","versions":[{"version":"4.0.0","status":"affected","lessThan":"4.0.0.1","versionType":"custom"},{"version":"3.0.0","status":"affected","lessThan":"3.0.5.1","versionType":"custom"},{"version":"2.0.0.RELEASE","status":"affected","lessThan":"2.0.9.RELEASE","versionType":"custom"}]}],"references":[{"url":"https://spring.io/security/cve-2026-40991"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"LOW","baseSeverity":"MEDIUM","baseScore":5.9,"vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-611","lang":"en","description":"CWE-611: Improper Restriction of XML External Entity Reference","type":"CWE"}]}],"providerMetadata":{"shortName":"vmware","orgId":"dcf2e128-44bd-42ed-91e8-88f912c1401d","dateUpdated":"2026-06-27T21:10:14.865Z"},"impacts":[{"descriptions":[{"lang":"en","value":"An attacker who can compromise or impersonate a remote API can perform an XXE injection attack when spring-restdocs documentation tests execute against the malicious endpoint."}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 1.0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-10T13:01:26.403312Z","id":"CVE-2026-40991","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-10T13:01:36.180Z"}}]}}}