CVE-2025-66400Unifiedjs Mdast-util-to-hast
Medium 6.9 No auth needed
Follow: this CVE · Unifiedjs · Unifiedjs Mdast-util-to-hast We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 4.0
- 6.9
- EPSS
- —
- Auth required
- No
- Published
- Dec 1, 2025
- Updated
- Oct 18, 2026
- Category
- Application · Cross-platform
- 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.
What to do
- Apply the vendor's security update for Mdast-util-to-hast.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| unifiedjs | mdast-util-to-hast | ≥ 13.0.0 < 13.2.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Vendor Advisory