CVE-2025-66400 Details
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.
A vulnerability in the mdast-util-to-hast package, specifically in versions 13.0.0 prior to 13.2.1, allows multiple unprefixed classnames to be added to markdown code elements via character references. This unsanitized class attribute could make user-supplied markdown code appear indistinguishable from the rest of the page. The issue has been patched in version 13.2.1.
Users can update to version 13.2.1 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-915 | Improperly Controlled Modification of Dynamically-Determined Object Attributes | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| unifiedjs mdast-util-to-hast | >= 13.0.0, < 13.2.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 6, 2026 | Reanalysis | [email protected] |
| Feb 6, 2026 | Initial Analysis | [email protected] |
| Dec 1, 2025 | New CVE Received | [email protected] |