Intel

AIKIDO-2026-845610

spring-restdocs-restassured is vulnerable to XML External Entity (XXE) Injection

CVE-2026-40991Published Jun 12, 2026
June 12, 2026

60

CVE Score

Medium

XML External Entity (XXE) Injection

Are you affected? Scan for Free

TL;DR

When using spring-restdocs-webtestclient or spring-restdocs-restassured to document a remote API accessed over HTTP, an attacker who compromises the API or tricks the user into documenting a malicious API can perform an XXE injection attack when the documentation-generating tests are next executed.

How do I fix this?

Upgrade the org.springframework.restdocs:spring-restdocs-restassured library to the patch version.

Who does this affect?

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

Versions

0.0.1 - 3.0.5

Fixed in 3.0.6

4.0.0 - 4.0.0

Fixed in 4.0.1

Background info

spring-restdocs-restassured is vulnerable to XML External Entity (XXE) Injection in versions 0.0.1 - 3.0.5 and 4.0.0 - 4.0.0.

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