# CVE-2026-40998: Jaxp13 XPath XXE via StreamSource and SAXSource

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-06-11 · Modified: 2026-06-23
- Aliases: GHSA-2mpf-m756-hxjm
- Record: https://cvemate.com/vulnerability/CVE-2026-40998 · JSON: https://cvemate.com/vulnerability/CVE-2026-40998/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- EPSS: 0.352%, percentile 30.871%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- broadcom spring\_web\_services: \< 3.1.9 \| ≥ 4.0.0, \< 4.0.19 \| ≥ 4.1.0, \< 4.1.3.1 \| ≥ 5.0.0, \< 5.0.1.1
- org.springframework.ws spring-xml (Maven): ≥ 5.0.0, \< 5.0.2 \| ≥ 4.1.0, \< 4.1.4 \| ≥ 4.0.0, ≤ 4.0.18 \| ≥ 3.1.0, ≤ 3.1.8
- spring spring web services: ≥ 5.0.0, \< 5.0.1.1 \| ≥ 4.1.0, \< 4.1.3.1 \| ≥ 4.0.0, \< 4.0.19 \| ≥ 3.1.0, \< 3.1.9

## References

- <https://spring.io/security/cve-2026-40998>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40998>
- <https://github.com/spring-projects/spring-ws/commit/eb8d66c0995d1e1dd5bfcfb657c8c9de21266d97>
- <https://github.com/spring-projects/spring-ws>

---

Data as of 2026-12-05T04:44:14.740Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
