HIGH 8.2

CVE-2026-40998

Spring Web Services: Jaxp13 XPath XXE via StreamSource and SAXSource

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.ws » spring-xml
>= 3.1.0, <= 3.1.8>= 4.0.0, <= 4.0.18>= 4.1.0, < 4.1.4>= 5.0.0, < 5.0.2
4.1.4, 5.0.2

Blast radius

1affected artifacts
34affected versions
182dependent artifacts (est.)
6,316dependent versions

57% of the dependent artifacts (104) still pull an affected version in their latest release.

DepthDependent versions
Direct
467
2 hops
1,482
3 hops
1,567
4 hops
1,822
5 hops
595
6 hops
383

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webspring.io