> CVE-2025-66400 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2025-12-01 23:15
MODIFIED
2025-12-01 23:15
CVSS_SCORE V3
6.9
EPSS (Prob. Exploit)
0.31%
Top 77.9%
DATA SOURCES:
NVD đź”— 2025-12-02 CVE PROJECT đź”— 2026-01-19 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-11-04 OSV đź”— 2026-03-01

> DESCRIPTION

mdast-util-to-hast is an mdast utility to transform to hast. From 13.0.0 to before 13.2.1, multiple (unprefixed) classnames could be added in markdown source by using character references. This could make rendered user supplied markdown code elements appear like the rest of the page. This vulnerability is fixed in 13.2.1.

> AFFECTED_PRODUCTS

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

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-20 CWE-915

> CWE DETAILED DESCRIPTIONS

CWE-20: Improper Input Validation - The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. | CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes - The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.

> GITHUB SECURITY ADVISORY

GHSA-4fh9-h7wg-q85m MODERATE

mdast-util-to-hast has unsanitized class attribute

AFFECTED PACKAGES:
NPM / mdast-util-to-hast
>= 13.0.0, < 13.2.1
Fixed in: 13.2.1

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

mdast-util-to-hast unsanitized class attribute

AFFECTED PACKAGES:
Unknown / Unknown
5 versions affected
ALIASES:
GHSA-4fh9-h7wg-q85m

> HISTORIQUE DES MODIFICATIONS

Première apparition
01/12/2025 23:15
Source: NVD
📊 ENRICHISSEMENT 19/01/2026 17:37
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
📊 ENRICHISSEMENT 01/01/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-20: Improper Input Validation - The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process...
Total des modifications: 2 Dernière mise à jour: 9 months ago

> REFERENCES

https://github.com/syntax-tree/mdast-util-to-hast/commit/6fc783ae6abdeb798fd5a68...
https://github.com/syntax-tree/mdast-util-to-hast/commit/ab3a79570a1afbfa7efef5d...
https://github.com/syntax-tree/mdast-util-to-hast/security/advisories/GHSA-4fh9-...
« BACK_TO_HOME