Skip to main content

Spring Web Services CVE-2026-40998

| EUVDEUVD-2026-36208 HIGH
Improper Restriction of XML External Entity Reference (CWE-611)
2026-06-11 vmware GHSA-2mpf-m756-hxjm
8.2
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint accepting XML
  2. Delivery
    Send payload with external DOCTYPE entity
  3. Exploit
    Jaxp13XPathTemplate parses via default DocumentBuilderFactory
  4. Execution
    External entity resolved during parse
  5. Impact
    Exfiltrate file contents or SSRF response

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML external entity prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application call Jaxp13XPathTemplate to evaluate XPath where the javax.xml.transform.Source is a StreamSource or SAXSource constructed from attacker-controlled XML (the DOMSource path uses a different, hardened parser and is not in scope). The attacker must reach an endpoint that ingests XML and routes it through this template, the deployed Spring Web Services version must fall within 3.1.0-3.1.8, 4.0.0-4.0.18, 4.1.0-4.1.3, or 5.0.0-5.0.1, and the JDK's default DocumentBuilderFactory must still permit DTD processing and external entity resolution (i.e. no JVM-wide FEATURE_SECURE_PROCESSING override). No authentication and no user interaction are required per the CVSS vector.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N is consistent with classic XXE: network reachable, no authentication, no user interaction, high confidentiality impact (file/SSRF disclosure) and limited integrity impact. No EPSS score, SSVC decision, or KEV listing was supplied in the input, and no public exploit identified at time of analysis - so real-world risk hinges on whether deployed applications actually pass untrusted XML through Jaxp13XPathTemplate with StreamSource/SAXSource. Exploitation is well within commodity attacker capability because XXE payloads are mature and reusable, but the vulnerability is library-side: only applications that explicitly evaluate XPath over attacker-controlled XML are exposed, which is narrower than a flaw in the SOAP message pipeline itself. The 8.2 score is therefore credible as a worst-case rating, but defenders should weight it against whether their code path actually feeds untrusted Sources into this template.

Exploit ScenarioDerived

A remote unauthenticated attacker submits an XML document containing an external entity declaration (e.g. <!ENTITY xxe SYSTEM "file:///etc/passwd">) to an application endpoint that internally invokes Jaxp13XPathTemplate.evaluate() with a StreamSource or SAXSource over the request body. The default DocumentBuilderFactory resolves the entity during parsing, leaking file contents or making outbound SSRF requests back through the XPath result or via out-of-band channels; no public exploit identified at time of analysis, but generic XXE tooling applies directly.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 11, 2026

XML External Entity (XXE) exposure in Spring Web Services' Jaxp13XPathTemplate allows remote attackers to abuse XPath evaluation over StreamSource and SAXSource inputs because the underlying parser falls back to the JDK's default DocumentBuilderFactory rather than Spring's hardened configuration. Affected versions span the 3.1.x, 4.0.x, 4.1.x and 5.0.x release lines, and while no public exploit was identified at time of analysis, the CVSS 8.2 vector (AV:N/AC:L/PR:N/UI:N) indicates that any service that feeds untrusted XML through this template can be reached by unauthenticated remote attackers. The flaw was reported by VMware/Spring and is tracked in the official Spring security advisory.

RemediationAI

Patch available per vendor advisory at https://spring.io/security/cve-2026-40998 - upgrade to the fixed release on the branch you run (5.0.x, 4.1.x, 4.0.x, or 3.1.x); the input data does not name a specific fixed version, so confirm the exact patched build against the Spring advisory before deploying. As a compensating control until upgrade, avoid passing attacker-controlled XML through Jaxp13XPathTemplate's StreamSource/SAXSource entry points (prefer DOMSource built from a pre-hardened DocumentBuilder where you have already set FEATURE_SECURE_PROCESSING, disallow-doctype-decl, and disabled external-general-entities and external-parameter-entities), or pre-validate inbound XML through a hardened parser before XPath evaluation; the trade-off is added code on every XML ingestion path and the risk of rejecting legitimate documents that include benign DTDs.

Affected VersionsENISA

Spring Web Services 5.0.0 <5.0.2
Spring Web Services 4.1.0 <4.1.4
Spring Web Services 3.1.0 <3.1.9
Spring Web Services 4.0.0 <4.0.19

Affected Packages

maven org.springframework.ws:spring-xml fix: 4.1.4, 5.0.2
euvd spring_web_services fix: 3.1.9, 4.0.19, 4.1.4, 5.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Spring Web Services ships Jaxp13XPathTemplate, a helper built on the JAXP 1.3 XPath API that evaluates XPath expressions against an arbitrary javax.xml.transform.Source. For StreamSource and SAXSource inputs the template internally instantiates a JDK DocumentBuilderFactory to parse the XML before applying XPath, but it failed to disable external entity resolution (FEATURE_SECURE_PROCESSING / disallow-doctype-decl / external-general-entities / external-parameter-entities), unlike the rest of Spring's hardened XML stack. This is the classic CWE-611 (Improper Restriction of XML External Entity Reference) root cause: a downstream consumer reuses a default-configured JAXP parser, so a DOCTYPE-bearing payload can dereference local files (file://), internal HTTP services, or trigger XML-bomb-style parsing. The CPE cpe:2.3:a:spring:spring_web_services covers the affected component across all impacted minor versions.

Know when Spring gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vmware) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
vuln.today AI 8.2 HIGH

Network-reachable XML endpoint, no auth or UI, standard XXE technique gives high confidentiality (file/SSRF read) and limited integrity via response manipulation; no direct availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 8.2 HIGH

Primary rating from Vendor (vmware).

CVSS VectorVendor: vmware

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

Lifecycle Timeline

1
Patch available
Jun 11, 2026 - 08:01 EUVD

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 18 maven packages depend on org.springframework.ws:spring-xml (5 direct, 13 indirect)

Ecosystem-wide dependent count for version 5.0.0.

Executive ViewAI

Why It Matters

Spring Web Services versions 3.1.x through 5.0.x contain an XML processing vulnerability that exposes organizations to unauthenticated remote attacks through untrusted XML input. No public exploit identified at time of analysis; however, the straightforward attack vector and lack of available patch create urgent risk requiring immediate mitigation.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Web Application Firewall rules rejecting XML with DOCTYPE and external entity declarations; (2) Application-level XML parser configuration disabling external entity processing; (3) Strict XML schema validation for all untrusted sources; (4) Network segmentation of XML processing services; (5) Enhanced logging and alerting for suspicious XML patterns and entity resolution attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

More in Spring

View all
CVE-2025-70982 CRITICAL POC
9.9 Jan 26

Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat

CVE-2026-22739 HIGH POC
8.6 Mar 24

Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u

CVE-2025-41242 MEDIUM POC
5.9 Aug 18

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant

CVE-2025-70983 CRITICAL
9.9 Jan 23

SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t

CVE-2026-41699 CRITICAL
9.8 Jun 11

Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at

CVE-2026-59313 CRITICAL
9.8 Aug 27

Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across

CVE-2026-22738 CRITICAL
9.8 Mar 27

Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin

CVE-2026-41855 CRITICAL
9.8 Jun 09

Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso

CVE-2025-41232 CRITICAL
9.1 May 21

Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity

CVE-2026-59283 CRITICAL
9.1 Aug 27

Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca

CVE-2026-40982 CRITICAL
9.1 May 07

Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files

CVE-2026-22732 CRITICAL POC
9.1 Mar 19

Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy