{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-40991","id":"CVE-2026-40991","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","descriptionLong":"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.","published":"2026-06-09T23:46:33.676Z","updated":"2026-10-28T02:30:44.314665774Z","reserved":"2026-04-16T02:19:09.389Z","status":"Analyzed","rejected":false,"assigner":"vmware","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"vmware"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"vmware"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"vmware.com"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["Spring REST Docs"],"affectedProducts":[{"vendor":"Spring","product":"Spring REST Docs","defaultStatus":"unaffected","versions":[{"status":"affected","version":"4.0.0","lessThan":"4.0.0.1","versionType":"custom"},{"status":"affected","version":"3.0.0","lessThan":"3.0.5.1","versionType":"custom"},{"status":"affected","version":"2.0.0.RELEASE","lessThan":"2.0.9.RELEASE","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.springframework.restdocs:spring-restdocs-webtestclient","purl":"pkg:maven/org.springframework.restdocs/spring-restdocs-webtestclient","ranges":[">=4.0.0 <4.0.1",">=3.0.0 <3.0.6","<=2.0.8.RELEASE"],"fixed":["4.0.1","3.0.6"],"advisory":"GHSA-6rpq-6vv2-5222"},{"ecosystem":"Maven","name":"org.springframework.restdocs:spring-restdocs-restassured","purl":"pkg:maven/org.springframework.restdocs/spring-restdocs-restassured","ranges":[">=4.0.0 <4.0.1",">=3.0.0 <3.0.6","<=2.0.8.RELEASE"],"fixed":["4.0.1","3.0.6"],"advisory":"GHSA-6rpq-6vv2-5222"}],"cwes":["CWE-611"],"aliases":["GHSA-6rpq-6vv2-5222"],"references":[{"url":"https://spring.io/security/cve-2026-40991","tags":["Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40991.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40991","tags":["advisory"]},{"url":"https://github.com/spring-projects/spring-restdocs","tags":["package"]},{"url":"https://github.com/spring-projects/spring-restdocs/releases/tag/v3.0.6","tags":["web"]},{"url":"https://github.com/spring-projects/spring-restdocs/releases/tag/v4.0.1","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00223,"epssPercentile":0.13017,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-40991","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40991","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-40991","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6rpq-6vv2-5222","ok":true,"note":"GHSA-6rpq-6vv2-5222"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40991","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}