CVE & CISA-KEV Catalog

CVE-2026-40991

MEDIUM
5.9
CVSS v3
NVD

Description

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. Affected versions: Spring REST Docs 4.0.0; 3.0.0 through 3.0.5; 2.0.0.RELEASE through 2.0.8.RELEASE.

How to fix

Remediation Available
spring rest docsNVD
Affected:>= 2.0.0, < 2.0.9Fixed in:2.0.9CVE-2026-40991derived from NVD
Affected:>= 3.0.0, < 3.0.5.1Fixed in:3.0.5.1CVE-2026-40991derived from NVD

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityLow

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L

Exploit Intelligence

0.22%probability of exploitation in 30 days
13thpercentile

Low risk: more likely to be exploited than 13% of all known CVEs.

References

Vendor Advisory1

Related Vulnerabilities

Other CWE-611 (XML External Entity (XXE)) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-34102Critical9.8100%KEVFix
CVE-2019-9670Critical9.8100%KEVFix
CVE-2022-28219Critical9.897%--
CVE-2024-22024High8.395%--
CVE-2024-38653High7.592%--
CVE-2017-12629Critical9.892%-Fix

Common questions

How do I fix CVE-2026-40991?

Upgrade spring rest docs to 2.0.9 or later.

Is CVE-2026-40991 being actively exploited?

Not that we know of. CVE-2026-40991 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.22% is the estimated probability that it will be exploited in the next 30 days. That is higher than 13% of all scored CVEs.

How severe is CVE-2026-40991?

CVE-2026-40991 has a CVSS v3 base score of 5.9, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2026-40991 affect?

Published advisories record a fix for spring rest docs (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2026-40991
CVE-2026-40991 severity badge

Markdown

[![CVE-2026-40991](https://tridentstack.com/cve/badge/CVE-2026-40991.svg)](https://tridentstack.com/cve/CVE-2026-40991)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-40991"><img src="https://tridentstack.com/cve/badge/CVE-2026-40991.svg" alt="CVE-2026-40991"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-07-23.