CVE-2026-40998: Jaxp13 XPath XXE via StreamSource and SAXSource
Vulnerability summary
CVE-2026-40998 is a high (CVSS 8.2) vulnerability in broadcom spring_web_services. EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 30.8% of scored vulnerabilities.
Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 11-06-2026PublishedVulnerability first disclosed.
- 23-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- NVDNIST8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
EPSS trend
Probability
0.35%
Chance of exploitation in the next 30 days
Percentile
31%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.35% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Broadcom1 product
- spring_web_services< 3.1.9 | ≥ 4.0.0, < 4.0.19 | ≥ 4.1.0, < 4.1.3.1 | ≥ 5.0.0, < 5.0.1.1
Org.springframework.ws1 product
- spring-xml≥ 5.0.0, < 5.0.2 | ≥ 4.1.0, < 4.1.4 | ≥ 4.0.0, ≤ 4.0.18 | ≥ 3.1.0, ≤ 3.1.8
Spring1 product
- spring web services≥ 5.0.0, < 5.0.1.1 | ≥ 4.1.0, < 4.1.3.1 | ≥ 4.0.0, < 4.0.19 | ≥ 3.1.0, < 3.1.9
3 vendors · 3 products