VDB
KO
HIGH 8.2

GHSA-2mpf-m756-hxjm

Spring Web Services: Jaxp13 XPath XXE via StreamSource and SAXSource

Quick fix

GHSA-2mpf-m756-hxjm — org.springframework.ws:spring-xml: upgrade to the fixed version with the command below.

# pom.xml: bump <version>5.0.2</version> for org.springframework.ws:spring-xml

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven / org.springframework.ws:spring-xml
Introduced in: 5.0.0 Fixed in: 5.0.2
Fix # pom.xml: bump <version>5.0.2</version> for org.springframework.ws:spring-xml
Maven / org.springframework.ws:spring-xml
Introduced in: 4.1.0 Fixed in: 4.1.4
Fix # pom.xml: bump <version>4.1.4</version> for org.springframework.ws:spring-xml
Maven / org.springframework.ws:spring-xml
Introduced in: 4.0.0

No fixed version published yet for org.springframework.ws:spring-xml (maven). Pin to a known-safe version or switch to an alternative.

Maven / org.springframework.ws:spring-xml
Introduced in: 3.1.0

No fixed version published yet for org.springframework.ws:spring-xml (maven). Pin to a known-safe version or switch to an alternative.

References