CVE-2026-40998

published 11 Jun 2026 · updated 23 Jun 2026

Jaxp13 XPath XXE via StreamSource and SAXSource

8.2HighCVSS 8.2EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.1.9, 4.0.19, 4.1.3.1 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Spring>=3.1.0 <3.1.9, >=4.0.0 <4.0.19, >=4.1.0 <4.1.3.1, >=5.0.0 <5.0.1.13.1.9, 4.0.19, 4.1.3.1, 5.0.1.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40998 severity on Zeptric[![CVE-2026-40998](https://zeptric.io/badge/cve/CVE-2026-40998.svg)](https://zeptric.io/cve/CVE-2026-40998)