Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint accepting XML
-
DeliverySend payload with external DOCTYPE entity
-
ExploitJaxp13XPathTemplate parses via default DocumentBuilderFactory
-
ExecutionExternal entity resolved during parse
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
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.
Primary rating from Vendor (vmware).
CVSS VectorVendor: vmware
Lifecycle Timeline
1DescriptionCVE.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- 18 maven packages depend on org.springframework.ws:spring-xml (5 direct, 13 indirect)
Ecosystem-wide dependent count for version 5.0.0.
Articles & Coverage 2
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.
Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat
Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant
SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t
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
Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across
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
Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso
Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity
Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca
Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
EUVD-2026-36208
GHSA-2mpf-m756-hxjm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB