GitHub Advisoryadvisory · Maven

GHSA-2mpf-m756-hxjm Spring Web Services: Jaxp13 XPath XXE via StreamSource and SAXSource

HIGH Published 2026-06-11 Modified 2026-08-21 Official page ↗
Aliases
CVE-2026-40998
Ecosystem
Maven
Packages
org.springframework.ws:spring-xml
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Weaknesses
CWE-611
Reviewed
2026-08-21

Affected packages

• Maven org.springframework.ws:spring-xml: >= 5.0.0, < 5.0.2 → fixed in 5.0.2 • Maven org.springframework.ws:spring-xml: >= 4.1.0, < 4.1.4 → fixed in 4.1.4 • Maven org.springframework.ws:spring-xml: >= 4.0.0, <= 4.0.18 (no fix yet) • Maven org.springframework.ws:spring-xml: >= 3.1.0, <= 3.1.8 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2026-40998 Jaxp13XPathTemplate evaluated XPath expressions for StreamSource and SAXSource inputs using a code path that parsed attacker-controlled XML… vulnerability

Weakness · CWE (1)

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

References