XML External Entity Vulnerability in Spring Web Services from Pivotal Software
CVE-2026-40998
8.2HIGH
What is CVE-2026-40998?
The vulnerability stems from the handling of XPath expressions within Spring Web Services, specifically involving the evaluation of XML inputs through the JDK's default DocumentBuilderFactory. This default handling does not incorporate the secure configurations provided by Spring, leading to potential exposure in applications that evaluate XPath against untrusted XML payloads. Attackers can leverage this flaw to execute XML External Entity (XXE) attacks, posing significant risks to the integrity and confidentiality of the affected applications.
Affected Version(s)
Spring Web Services 5.0.0 < 5.0.1.1
Spring Web Services 4.1.0 < 4.1.3.1
Spring Web Services 4.0.0 < 4.0.19
