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

- Severity: High 8.2 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-06-11T05:04:12.565Z
- Modified: 2026-09-04T18:19:26.960Z
- Also known as: GHSA-2mpf-m756-hxjm
- Weaknesses: CWE-611
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Spring Spring Web Services: from 5.0.0 before 5.0.1.1; from 4.1.0 before 4.1.3.1; from 4.0.0 before 4.0.19; from 3.1.0 before 3.1.9
- org.springframework.ws:spring-xml (Maven): from 5.0.0 before 5.0.2; from 4.1.0 before 4.1.4; from 4.0.0 up to 4.0.18; from 3.1.0 up to 3.1.8
- broadcom spring_web_services: before 3.1.9; from 4.0.0 before 4.0.19; from 4.1.0 before 4.1.3.1; from 5.0.0 before 5.0.1.1

## Every score

- vmware: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`

## References

- <https://spring.io/security/cve-2026-40998> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40998> (advisory)
- <https://github.com/spring-projects/spring-ws/commit/eb8d66c0995d1e1dd5bfcfb657c8c9de21266d97> (web)
- <https://github.com/spring-projects/spring-ws> (package)

## Sources

- CVE List: [CVE-2026-40998](https://www.cve.org/CVERecord?id=CVE-2026-40998), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-2mpf-m756-hxjm](https://github.com/advisories/GHSA-2mpf-m756-hxjm), CC-BY-4.0, modified 2026-08-21
- NVD: [CVE-2026-40998](https://nvd.nist.gov/vuln/detail/CVE-2026-40998), Public domain, modified 2026-09-04

---

Page: https://cve.day/CVE-2026-40998 · Whole record: https://cve.day/CVE-2026-40998.json · Rebuilt by cve.day 2026-11-25T22:59:24.411Z
