{"id":"CVE-2026-40991","sourceIdentifier":"security@vmware.com","published":"2026-06-10T00:16:50.087","lastModified":"2026-07-23T09:10:00.113","vulnStatus":"Analyzed","cveTags":[],"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."},{"lang":"es","value":"Al usar spring-restdocs-webtestclient o spring-restdocs-restassured para documentar una API remota accedida a través de HTTP, un atacante que compromete la API o engaña al usuario para que documente una API maliciosa puede realizar un ataque de inyección XXE cuando las pruebas de generación de documentación se ejecuten a continuación.\n\nVersiones afectadas:\nSpring REST Docs 4.0.0; 3.0.0 a 3.0.5; 2.0.0.RELEASE a 2.0.8.RELEASE."}],"affected":[{"source":"security@vmware.com","affectedData":[{"vendor":"Spring","product":"Spring REST Docs","defaultStatus":"unaffected","versions":[{"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","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security@vmware.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L","baseScore":5.9,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"LOW"},"exploitabilityScore":1.6,"impactScore":4.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-06-10T13:01:26.403312Z","id":"CVE-2026-40991","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security@vmware.com","type":"Secondary","description":[{"lang":"en","value":"CWE-611"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:broadcom:spring_rest_docs:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.0.9","matchCriteriaId":"5F69364E-A2BF-487A-A3DA-090D7D529779"},{"vulnerable":true,"criteria":"cpe:2.3:a:broadcom:spring_rest_docs:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.0.5.1","matchCriteriaId":"B5D318C1-D504-4260-84D2-151909F8DF54"},{"vulnerable":true,"criteria":"cpe:2.3:a:broadcom:spring_rest_docs:4.0.0:-:*:*:*:*:*:*","matchCriteriaId":"AE4B0082-FA1B-4925-9DCD-3FBB07725452"}]}]}],"references":[{"url":"https://spring.io/security/cve-2026-40991","source":"security@vmware.com","tags":["Vendor Advisory"]}]}