> CVE-2026-40991 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-06-10 00:16
MODIFIED
2026-06-10 00:16
CVSS_SCORE V3
5.9
EPSS (Prob. Exploit)
0.29%
Top 79.2%
DATA SOURCES:
NVD 🔗 2026-06-10 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-11-05

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
EXPLOITABILITY
1.6
IMPACT
4.2

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
Low (L)
Interruption partielle du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-611

> CWE DETAILED DESCRIPTIONS

CWE-611: Improper Restriction of XML External Entity Reference - The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

> GITHUB SECURITY ADVISORY

GHSA-6rpq-6vv2-5222 MODERATE

Spring REST Docs REST Assured & WebFlux are vulnerable to Improper Restriction of XML External Entity Reference

AFFECTED PACKAGES:
MAVEN / org.springframework.restdocs:spring-restdocs-restassured
<= 2.0.8.RELEASE
MAVEN / org.springframework.restdocs:spring-restdocs-restassured
>= 3.0.0, <= 3.0.5
Fixed in: 3.0.6
MAVEN / org.springframework.restdocs:spring-restdocs-restassured
= 4.0.0
Fixed in: 4.0.1
MAVEN / org.springframework.restdocs:spring-restdocs-webtestclient
<= 2.0.8.RELEASE
MAVEN / org.springframework.restdocs:spring-restdocs-webtestclient
>= 3.0.0, <= 3.0.5
Fixed in: 3.0.6
MAVEN / org.springframework.restdocs:spring-restdocs-webtestclient
= 4.0.0
Fixed in: 4.0.1

> HISTORIQUE DES MODIFICATIONS

Première apparition
10/06/2026 00:16
Source: NVD
📊 ENRICHISSEMENT 01/07/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-611: Improper Restriction of XML External Entity Reference - The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere ...
Total des modifications: 1 Dernière mise à jour: 4 months ago

> REFERENCES

https://spring.io/security/cve-2026-40991
« BACK_TO_HOME