CVE Catalog

CVE-2025-66400

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.31%

22th percentile - higher than 22% of all known CVEs

Summary

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, making rendered user-supplied markdown code elements appear like the rest of the page. This vulnerability is fixed in 13.2.1.

Risk Assessment

An attacker can inject classnames to manipulate the appearance of rendered code, potentially leading to deception or phishing. This may compromise the integrity of content presentation.

Recommendation

Update mdast-util-to-hast to version 13.2.1 or later. Consider sanitizing markdown input if immediate update is not possible.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS