5.9

CVE-2026-40991: broadcom spring_rest_docs

CVSS: 5.9v3.1MediumAnalyzed
AliasesGHSA-6rpq-6vv2-5222
Published 09-06-2026Last modified 27-06-2026

Vulnerability summary

CVE-2026-40991 is a medium (CVSS 5.9) vulnerability in broadcom spring_rest_docs. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 20.5% of scored vulnerabilities.

Overall risk
24/100
0100
Low · default modelHow is this calculated?
CVSS score
5.9/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.29%
0%100%
Low · +0.07 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 09-06-2026
    PublishedVulnerability first disclosed.
  2. 27-06-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.29%

Chance of exploitation in the next 30 days

Percentile

21%

Versus all other CVEs

30-day change

+0.07 pp

From 0.22% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.29%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Org.springframework.restdocs2 products
  • spring-restdocs-restassured≥ 4.0.0, < 4.0.1 | ≥ 3.0.0, < 3.0.6 | ≤ 2.0.8.RELEASE
  • spring-restdocs-webtestclient≥ 4.0.0, < 4.0.1 | ≥ 3.0.0, < 3.0.6 | ≤ 2.0.8.RELEASE
Broadcom1 product
Spring1 product
  • spring rest docs≥ 4.0.0, < 4.0.0.1 | ≥ 3.0.0, < 3.0.5.1 | ≥ 2.0.0.RELEASE, < 2.0.9.RELEASE

3 vendors · 4 products

References

5 links