Skip to content

mdast-util-to-hast (npm)

utility to transform mdast to hast

Advisories
2
Latest version
13.2.1
Released Nov 23, 2025
License
MIT
OpenSSF Scorecard
3.4 / 10

How to fix

Upgrading to 13.2.1 or later clears every advisory below that has a fix.

Upgrade commands
npm
npm install mdast-util-to-hast@13.2.1
yarn
yarn add mdast-util-to-hast@13.2.1
pnpm
pnpm add mdast-util-to-hast@13.2.1

Known vulnerabilities

AdvisorySeverityAffectedFixed in
GHSA-4fh9-h7wg-q85m
mdast-util-to-hast has unsanitized class attribute
Medium
EPSS 0.33%
>= 13.0.0, < 13.2.1
13.2.1
GHSA-4fh9-h7wg-q85m
mdast-util-to-hast has unsanitized class attribute
Medium
EPSS 0.33%
>= 13.0.0, < 13.2.1
13.2.1

Source: git+https://github.com/syntax-tree/mdast-util-to-hast.git

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor