Vulnerability · Published Jun 11, 2026 · Assigned by vmware

CVE-2026-40998Jaxp13 XPath XXE via StreamSource and SAXSource

High 8.2

In plain English

A high-severity XML external entity in Spring Web Services from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.4%top 70.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.springframework.ws:spring-xml5.0.2GHSA-2mpf-m756-hxjm
Mavenorg.springframework.ws:spring-xml4.1.4GHSA-2mpf-m756-hxjm
Mavenorg.springframework.ws:spring-xmlno fix listedGHSA-2mpf-m756-hxjm
Mavenorg.springframework.ws:spring-xmlno fix listedGHSA-2mpf-m756-hxjm

Affected products (as reported)

VendorProductVersions
Spring Spring Web Services 5.0.0 – before 5.0.1.14.1.0 – before 4.1.3.14.0.0 – before 4.0.193.1.0 – before 3.1.9

Weakness: CWE-611 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

References