Skip to main content

CVE-2026-40998 — Vulnerability in spring-xml — CVE Details

HIGH

Spring Web Services: Jaxp13 XPath XXE via StreamSource and SAXSource

Published June 11, 2026Updated August 21, 2026Source: OSV

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.

Check my pom.xml

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.

Maven
Update org.springframework.ws:spring-xml to 5.0.2 or later
<!-- Update pom.xml dependency version to 5.0.2 for org.springframework.ws:spring-xml -->
Maven
Update org.springframework.ws:spring-xml to 4.1.4 or later
<!-- 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).

PackageFixed 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.15.0.2
org.springframework.ws:spring-xml Maven · Affected: 4.1.0, 4.1.1, 4.1.2, 4.1.34.1.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-611
    XML External Entity (XXE)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

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

CVSS Score
8.2

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.39%
EPSS percentile: 24.4

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

GHSA-2mpf-m756-hxjm

Related CVEs

  • CVE-2019-3773
    CRITICAL

    Vulnerability that affects org.springframework.ws:spring-ws and org.springframework.ws:spring-xml

  • CVE-2026-40994
    HIGH

    Spring Web Services: Wss4jSecurityInterceptor disables WS-I BSP validation by default

  • CVE-2026-61689
    HIGH

    XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes

  • CVE-2026-107725
    HIGH

    Hazelcast has an authorization bypass in IMap Predicates API

  • CVE-2026-40999
    HIGH

    Spring Web Services: SSRF via unvalidated WS-Addressing reply destinations

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml