CVE-2025-66400Published Dec 1, 2025 · Dec 1Updated Oct 28
mdast-util-to-hast unsanitized class attribute
syntax-tree mdast-util-to-hast
Medium6.9Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| mdast-util-to-hast npm |
|
|
Original 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.
From the CVE record · GitHub_M