XML External Entity injection in Spring Web Services - CVE-2026-40998
Published: August 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information or perform server-side request forgery.
The vulnerability exists due to improper restriction of XML external entity references in Jaxp13XPathTemplate when evaluating XPath expressions on StreamSource or SAXSource inputs. A remote attacker can supply crafted XML with external entities to disclose sensitive information or perform server-side request forgery.
Exploitation requires that the application evaluate XPath expressions against untrusted XML data and use the affected source types without an additional hardening layer.