Vulnerability · Published Jun 11, 2026 · Assigned by vmware
CVE-2026-40998Jaxp13 XPath XXE via StreamSource and SAXSource
High 8.2
In plain English
A high-severity XML external entity in Spring Web Services from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.springframework.ws:spring-xml | 5.0.2 | GHSA-2mpf-m756-hxjm |
| Maven | org.springframework.ws:spring-xml | 4.1.4 | GHSA-2mpf-m756-hxjm |
| Maven | org.springframework.ws:spring-xml | no fix listed | GHSA-2mpf-m756-hxjm |
| Maven | org.springframework.ws:spring-xml | no fix listed | GHSA-2mpf-m756-hxjm |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Web Services | 5.0.0 – before 5.0.1.14.1.0 – before 4.1.3.14.0.0 – before 4.0.193.1.0 – before 3.1.9 |
Weakness: CWE-611 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N