CVE-2026-40998
HIGH 8.2CVSS 3.1Spring Web Services: Jaxp13 XPath XXE via StreamSource and SAXSource
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.
- Published
- 11 Jun 2026
- Last modified
- 4 Sep 2026
- Assigned by
- security@vmware.com
- NVD status
- Analyzed
- Weakness
- CWE-611
- Also known as
- GHSA-2mpf-m756-hxjm
- Sources
- NVDJSONOSV GHSA-2mpf-m756-hxjmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@vmware.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | broadcom | spring_web_servicescpe:2.3:a:broadcom:spring_web_services:*:*:*:*:*:*:*:* |
< 3.1.9 | 3.1.9 |
| NVD | broadcom | spring_web_servicescpe:2.3:a:broadcom:spring_web_services:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.0.19 | 4.0.19 |
| NVD | broadcom | spring_web_servicescpe:2.3:a:broadcom:spring_web_services:*:*:*:*:*:*:*:* |
>= 4.1.0, < 4.1.3.1 | 4.1.3.1 |
| NVD | broadcom | spring_web_servicescpe:2.3:a:broadcom:spring_web_services:*:*:*:*:*:*:*:* |
>= 5.0.0, < 5.0.1.1 | 5.0.1.1 |
| OSV | Maven | org.springframework.ws:spring-xml | >= 5.0.0, < 5.0.2 | 5.0.2 |
| OSV | Maven | org.springframework.ws:spring-xml | >= 4.1.0, < 4.1.4 | 4.1.4 |
| OSV | Maven | org.springframework.ws:spring-xml | >= 4.0.0, <= 4.0.18 | |
| OSV | Maven | org.springframework.ws:spring-xml | >= 3.1.0, <= 3.1.8 |
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
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 11 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Jun 2026)