CVE-2026-40998 — Vulnerability in spring-xml — CVE Details
Spring Web Services: Jaxp13 XPath XXE via StreamSource and SAXSource
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.39%). Schedule for your next planned update.
Does your project use an affected org.springframework.ws:spring-xml version?
Paste your pom.xml to check it for CVE-2026-40998 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published June 11, 2026 (168 days ago).
- Last revised August 21, 2026 — 71 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 5.0.2 for org.springframework.ws:spring-xml -->
<!-- Update pom.xml dependency version to 4.1.4 for org.springframework.ws:spring-xml -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.springframework.ws:spring-xml Maven · Affected: 4.0.0, 4.0.1, 4.0.10, 4.0.11 (+14 more) | Range-based data available |
| org.springframework.ws:spring-xml Maven · Affected: 3.1.0, 3.1.1, 3.1.2, 3.1.3 (+5 more) | Range-based data available |
| org.springframework.ws:spring-xml Maven · Affected: 5.0.0, 5.0.1 | 5.0.2 |
| org.springframework.ws:spring-xml Maven · Affected: 4.1.0, 4.1.1, 4.1.2, 4.1.3 | 4.1.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-611XML External Entity (XXE)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
References
Frequently Asked Questions
- What is CVE-2026-40998?
- Spring Web Services: Jaxp13 XPath XXE via StreamSource and SAXSource. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.2/10).
- How do I check if my project is affected by CVE-2026-40998?
- CVE-2026-40998 affects org.springframework.ws:spring-xml. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40998 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 24.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2019-3773CRITICAL
Vulnerability that affects org.springframework.ws:spring-ws and org.springframework.ws:spring-xml
- CVE-2026-40994HIGH
Spring Web Services: Wss4jSecurityInterceptor disables WS-I BSP validation by default
- CVE-2026-61689HIGH
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
- CVE-2026-107725HIGH
Hazelcast has an authorization bypass in IMap Predicates API
- CVE-2026-40999HIGH
Spring Web Services: SSRF via unvalidated WS-Addressing reply destinations