CVE-2026-40998
JSON

8.2high

Jaxp13 XPath XXE via StreamSource and SAXSource

Severity
8.2high CVSS:3.1 by vmware
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
vmware
Also known as
GHSA-2mpf-m756-hxjm

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.

Affected

Product or packageVersionsReported by
Spring Spring Web Servicesfrom 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.9CVE List
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.8GitHub Advisory Database
broadcom spring_web_servicesbefore 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.1NVD

All scores

vmware8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Classification

CWE-611

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Jaxp13XPathTemplate evaluó expresiones XPath para entradas StreamSource y SAXSource utilizando una ruta de código que analizó XML controlado por el atacante con el comportamiento predeterminado de DocumentBuilderFactory del JDK en lugar de la configuración de analizador reforzada de Spring. Las aplicaciones que evalúan XPath contra cargas útiles XML no confiables podrían, por lo tanto, estar expuestas a ataques de estilo Entidad Externa XML (XXE). Versiones afectadas: Spring Web Services 5.0.0 a 5.0.1; 4.1.0 a 4.1.3; 4.0.0 a 4.0.18; 3.1.0 a 3.1.8.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40998 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-2mpf-m756-hxjm changed 2026-08-21CC-BY-4.0
NVDCVE-2026-40998 changed 2026-09-04Public domain