Skip to content
OpenAdvisories
Medium · 6.9 CVE-2025-66400 EUVD-2025-200113GHSA-4fh9-h7wg-q85m

mdast-util-to-hast unsanitized class attribute

Published Dec 1, 2025 · Updated Dec 2, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
syntax-tree mdast-util-to-hast >= 13.0.0, < 13.2.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling keycloak-26.6 +1 26.6.4-r17 —
Wolfi rolling langfuse-3 +2 3.137.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm mdast-util-to-hast >= 13.0.0, < 13.2.1 13.2.1 GHSA-4fh9-h7wg-q85m

References