Back to the CVE list
CVE-2026-40991

XML external entity injection in Broadcom Spring Rest Docs

CVSS score

5.9

EPSS probability

%0.3

Risk score

0.0

Published

4 mo ago

Official patch verified

Etkilenen ürün ve sürüm için yayımlanan güvenlik güncellemesini uygulayın.

Impact on My Inventory

Only the personal products you have added to your account are assessed; an organisation's inventory does not appear here.

Checking session…

Vulnerability description

DayBreach CVE AI Research

CVE-2026-40991 has vendor, distribution, patch and security-source records on file. We can compare them and prepare an explanation linked to the evidence.

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.

IMPACT: Affected Products and Software

Affected Products

The following products are affected by CVE-2026-40991 vulnerability. Where our threat engine knows the exact affected versions, they are listed below.

IDVENDORPRODUCTACTION
1broadcomspring rest docs View
2broadcomspring rest docs View
3broadcomspring rest docs View
4mavenorg.springframework.restdocs:spring-restdocs-webtestclient View
5mavenorg.springframework.restdocs:spring-restdocs-webtestclient View
6mavenorg.springframework.restdocs:spring-restdocs-webtestclient View
7mavenorg.springframework.restdocs:spring-restdocs-restassured View
8mavenorg.springframework.restdocs:spring-restdocs-restassured View
9mavenorg.springframework.restdocs:spring-restdocs-restassured View
10mavenorg.springframework.restdocs:spring-restdocs-webtestclient View
11mavenorg.springframework.restdocs:spring-restdocs-webtestclient View
12mavenorg.springframework.restdocs:spring-restdocs-webtestclient View
13mavenorg.springframework.restdocs:spring-restdocs-restassured View
14mavenorg.springframework.restdocs:spring-restdocs-restassured View
15mavenorg.springframework.restdocs:spring-restdocs-restassured View
Total affected vendors: 2|Products: 15

RED HAT CSAF/VEX: Product Impact Check

Red Hat has not yet published a CSAF/VEX impact record for this CVE. This does not mean “not affected”.

SCORING: CVSS from Multiple Sources

CVSS Scores

The Common Vulnerability Scoring System is a standardised framework for assessing the severity of vulnerabilities in software and systems. We collect and display CVSS scores from several sources for each CVE.

SCOREVERSIONSEVERITYVECTORSOURCE
5.9CVSS V31MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:LNVD
5.9CVSS 3.x—Vector not publishedGitHub Advisory
0.0CVSS 4.0—Vector not publishedGitHub Advisory

Patch and Remediation Guide

Solution & Remediation Advisory

Patch verified

4 doğrulanmış yama veya düzeltilmiş sürüm kanıtı bulundu.

osvorg.springframework.restdocs:spring-restdocs-webtestclient4.0.1

OSV düzeltilmiş sürüm: 4.0.1

osvorg.springframework.restdocs:spring-restdocs-webtestclient3.0.6

OSV düzeltilmiş sürüm: 3.0.6

osvorg.springframework.restdocs:spring-restdocs-restassured4.0.1

OSV düzeltilmiş sürüm: 4.0.1

osvorg.springframework.restdocs:spring-restdocs-restassured3.0.6

OSV düzeltilmiş sürüm: 3.0.6

Confirm the affected product and version against the source evidence above.
Restrict access to internet-facing services and apply network segmentation.
Apply the official update named in the evidence only to the matching product and version.
Monitor server logs and network endpoints for signs of anomalous execution.

Public exploit and active exploitation status

Verified exploit intelligence

No verified public PoC, exploit repository or Metasploit module has been found for this CVE yet.

Weakness Classification and Attack Patterns (CWE & CAPEC)

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorises the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-40991 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-40991 weaknesses.

Attack Vector and Accessibility

ExposureAğ üzerinden
PermissionsGerekmiyor
UserGerekiyor

Official Sources and Advisories

CVSS Vector Radar Chart

5.9 / 10
Attack VectorNetworkComplexityHighPrivilegesNoneUser Interact.RequiredConfidentialityHighIntegrityNoneAvailabilityLow

Vulnerability Scoring Details

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone required
User Interaction—
Confidentiality (Gizlilik)High
Integrity (Bütünlük)None
Availability (Erişilebilirlik)Low

Yama doğrulandı

4 doğrulanmış yama veya düzeltilmiş sürüm kanıtı bulundu.

Follow the vendor

B
broadcom logo
broadcom
M
maven logo
maven

Weakness Type (CWE & CAPEC)

Similar Vulnerabilities

Get this vulnerability through the API

Affected products, version ranges, exploitation status and patch information in a single request, with a free key.

curl -H "x-api-key: $DAYBREACH_API_KEY" \
  "https://api.daybreach.dev/api/v1/intel/cves/CVE-2026-40991"