Skip to content
Fencer Vulns
high 8.2

CVE-2026-40998 json

Jaxp13 XPath XXE via StreamSource and SAXSource

published 2026-06-11 4 mo ago modified 2026-09-04 2 mo ago also GHSA-2mpf-m756-hxjm , EUVD-2026-36208

cvss
8.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 29%
public exploits
0
none known

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.

Patch / fix

  • maven org.springframework.ws:spring-xml 4.1.4, 5.0.2
  • Spring Spring Web Services 3.1.9, 4.0.19, 4.1.3.1, 5.0.1.1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-40998 updated cvss 8.2

org.springframework.ws/spring-xml: Spring Web Services: XML External Entity (XXE) attack via untrusted XML payloads

  • Red Hat Fuse 7 spring-xml, spring-ws-core
    not affected: vulnerable code not in execute path

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
4 mo ago

Exploit prediction

0.35% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
GitHub 3.1 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Affected packages

ecosystem package affected fixed in
maven org.springframework.ws: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
5.0.2
4.1.4

Affected products

  • Spring Spring Web Services

Classification

Weakness
  • CWE-611 Improper Restriction of XML External Entity Reference

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.