{"id":"CVE-2026-40998","published":"2026-06-11T05:04:12Z","modified":"2026-06-23T19:51:18Z","title":"Jaxp13 XPath XXE via StreamSource and SAXSource","vendor":"Spring","product":"Spring Web Services","tier":"tail","description":{"text":"Jaxp13XPathTemplate evaluated XPath expressions for StreamSource and SAXSource inputs using a code path that parsed attacker-controlled XML with the JDK's default DocumentBuilderFactory behavior instead of Spring's hardened parser configuration. Applications that evaluate XPath against untrusted XML payloads could therefore be exposed to XML External Entity (XXE) style attacks.\n\nAffected versions:\nSpring Web Services 5.0.0 through 5.0.1; 4.1.0 through 4.1.3; 4.0.0 through 4.0.18; 3.1.0 through 3.1.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00386,"percentile":0.24417,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://spring.io/security/cve-2026-40998","tags":[]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":4.88},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring Web Services","versions":[">= 5.0.0, < 5.0.1.1",">= 4.1.0, < 4.1.3.1",">= 4.0.0, < 4.0.19",">= 3.1.0, < 3.1.9"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-11T14:53:30.481043Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.ws:spring-xml","vulnerableRanges":[">=5.0.0, <5.0.2",">=4.1.0, <4.1.4",">=4.0.0, <=4.0.18",">=3.1.0, <=3.1.8"],"patched":["5.0.2","4.1.4"],"from":["GHSA-2mpf-m756-hxjm"],"provenance":"source"}],"summary":{"text":"A flaw in Spring Web Services' Jaxp13XPathTemplate causes XPath expressions evaluated against StreamSource and SAXSource inputs to parse XML with the JDK's default DocumentBuilderFactory behavior rather than Spring's hardened parser configuration. An attacker who can supply XML payloads to an application that evaluates XPath against untrusted input can mount XML External Entity (XXE)-style attacks, with no authentication or user interaction required and network access as the delivery path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:39Z"},"euvd":{"id":"EUVD-2026-36208","exploited":false,"provenance":"source"}}