Jaxp13 XPath XXE via StreamSource and SAXSource
Spring Web Services
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework.ws:spring-xml Maven |
|
|
Spring Web Services
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework.ws:spring-xml Maven |
|
|
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.
Affected versions: Spring 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.
From the CVE record · vmware
Jaxp13XPathTemplate parses StreamSource and SAXSource inputs using the JDK's default DocumentBuilderFactory behavior rather than Spring's hardened configuration. Applications that evaluate XPath against attacker-controlled XML could be exposed to XML External Entity (XXE) attacks. The input does not specify whether exploitation requires network access, authentication, or user interaction.
Teams running Spring Web Services 5.0.0–5.0.1, 4.1.0–4.1.3, 4.0.0–4.0.18, or 3.1.0–3.1.8 should check their use of org.springframework.ws:spring-xml.