Intel

AIKIDO-2026-400602

spring-xml is vulnerable to XML External Entity (XXE) Attack

CVE-2026-40998Published Jun 15, 2026
June 15, 2026

80

CVE Score

High

XML External Entity (XXE) Attack

Are you affected? Scan for Free

TL;DR

Spring Web Services contains an XML External Entity (XXE) vulnerability in Jaxp13XPathTemplate when evaluating XPath expressions against StreamSource or SAXSource inputs. Due to the use of an XML parser configuration that does not apply Spring's hardened settings, applications processing untrusted XML may allow attackers to resolve external entities. Successful exploitation can result in sensitive file disclosure, server-side request forgery, or other impacts depending on the environment and parser configuration.

How do I fix this?

Upgrade the org.springframework.ws:spring-xml library to a patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.0.1 - 4.1.3

Fixed in 4.1.4

5.0.0 - 5.0.1

Fixed in 5.0.2

Background info

spring-xml is vulnerable to XML External Entity (XXE) Attack in versions 0.0.1 - 4.1.3 and 5.0.0 - 5.0.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea