CVE-2026-40998
Description
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.
How to fix
- broadcom spring_web_services3.1.9, 4.0.19, 4.1.3.1, 5.0.1.1 or later
- org.springframework.ws:spring-xml5.0.2, 4.1.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| broadcom spring_web_services | v < 3.1.9, 4.0.0 ≤ v < 4.0.19, 4.1.0 ≤ v < 4.1.3.1, 5.0.0 ≤ v < 5.0.1.1 | 3.1.9, 4.0.19, 4.1.3.1, 5.0.1.1 |
| org.springframework.ws:spring-xmlMaven | 5.0.0 ≤ v < 5.0.2, 4.1.0 ≤ v < 4.1.4, 4.0.0 ≤ v ≤ 4.0.18, 3.1.0 ≤ v ≤ 3.1.8 | 5.0.2, 4.1.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.