Live threats

All CVEs / Unifiedjs

CVE-2025-66400Unifiedjs Mdast-util-to-hast

Medium 6.9 No auth needed

Priority
56
CVSS 4.0
6.9
EPSS
—
Auth required
No
Published
Dec 1, 2025
Updated
Oct 18, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-915
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mdast-util-to-hast.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mdast-util-to-hast ≥ 13.0.0 < 13.2.1 13.2.1 npm install mdast-util-to-hast@13.2.1

Per OSV / GitHub Advisories (GHSA-4fh9-h7wg-q85m). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
unifiedjsmdast-util-to-hast≥ 13.0.0 < 13.2.1

Official sources

References

Links published by the sources. Open them with care.