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

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 01 Dec 2025 22:30:00 +0000

Type Values Removed Values Added
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.
Title mdast-util-to-hast unsanitized class attribute
Weaknesses CWE-20
CWE-915
References
Metrics cvssV4_0

{'score': 6.9, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-12-01T22:17:42.705Z

Reserved: 2025-11-28T23:33:56.364Z

Link: CVE-2025-66400

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2025-12-01T23:15:53.070

Modified: 2025-12-01T23:15:53.070

Link: CVE-2025-66400

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.