CVE-2026-40998

Jaxp13 XPath XXE via StreamSource and SAXSource

HIGH
8.2
CVSS Score
Published: June 11, 2026 at 05:04 AM UTC
Updated: September 4, 2026 at 06:36 PM UTC
2 products affected across 2 vendorsSpring Web ServicesSpring Web Services

Using Spring Web Services by Spring?

Get instant alerts when new vulnerabilities affect Spring Web Services - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.2
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.1.94.0.0 ≤ v < 4.0.194.1.0 ≤ v < 4.1.3.15.0.0 ≤ v < 5.0.1.1
Affected range stops below 3.1.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.0.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.1.3.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.0.1.1, so it looks safe — our inference, not a vendor statement
3.1.0 ≤ v < 3.1.94.0.0 ≤ v < 4.0.194.1.0 ≤ v < 4.1.3.15.0.0 ≤ v < 5.0.1.13.1.04.0.04.1.05.0.0
Affected range stops below 3.1.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.0.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.1.3.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.0.1.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (1)

Vendor Advisory
Source: cverecord
https://spring.io/security/cve-2026-40998

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.2HIGHvmware
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-611

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card