CVE-2026-40998

High

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.

SeverityHigh
CVSS8.2
Exploit probability—
ProductBroadcom Spring Web Services
PublishedJun 11, 2026
First seenJun 11, 2026

How to fix

Update
  • broadcom spring_web_services3.1.9, 4.0.19, 4.1.3.1, 5.0.1.1 or later
  • org.springframework.ws:spring-xml5.0.2, 4.1.4 or later

Affected products

ProductAffected versionsFixed in
broadcom spring_web_servicesv < 3.1.9, 4.0.0 ≤ v < 4.0.19, 4.1.0 ≤ v < 4.1.3.1, 5.0.0 ≤ v < 5.0.1.13.1.9, 4.0.19, 4.1.3.1, 5.0.1.1
org.springframework.ws:spring-xmlMaven5.0.0 ≤ v < 5.0.2, 4.1.0 ≤ v < 4.1.4, 4.0.0 ≤ v ≤ 4.0.18, 3.1.0 ≤ v ≤ 3.1.85.0.2, 4.1.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.