CVE-2026-40998: Jaxp13XPathTemplate evaluated XPath expressions for StreamSource and SAXSource inputs using a code path that p
CVE-2026-40998 is a high-severity flaw (CVSS 8.2) affecting spring web services. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 th
Why this priority
- High severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.2 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 71%) |
| CISA exploited list | No |
| Weakness | CWE-611 |
| Published | 2026-06-11 |
| Last modified | 2026-09-04 |
Last updated 2026-09-04 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40998?
spring web services: upgrade to 3.1.9, 4.0.19, 4.1.3.1, 5.0.1.1. Exact commands for each OS are on this page.
Is CVE-2026-40998 being exploited?
CVE-2026-40998 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40998 affect?
CVE-2026-40998 affects spring web services. Severity is high (CVSS 8.2). 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 configura
How urgent is CVE-2026-40998?
Priority 41/100. High severity; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-40999 HIGH 8.6 UPGRADE When WS-Addressing is used with non-anonymous ReplyTo or FaultTo addresses, Spring WS may initiate outbound co
- CVE-2026-41000 LOW 3.7 UPGRADE Wss4jSecurityInterceptor did not consistently wire Apache WSS4J ReplayCache instances into RequestData for val
- CVE-2026-40994 HIGH 8.2 UPGRADE Wss4jSecurityInterceptor initialized its BSP (WS-I Basic Security Profile) compliance flag so that inbound val
- CVE-2026-40995 MEDIUM 5.4 UPGRADE X509AuthenticationProvider could issue a fully authenticated X509AuthenticationToken when a presented certific
- CVE-2026-40996 MEDIUM 4.8 UPGRADE Wss4jSecurityInterceptor defaulted allowRSA15KeyTransportAlgorithm to true, overriding Apache WSS4J's safer de