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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | keycloak-26.6 +1 | 26.6.4-r17 | — |
| Wolfi rolling | langfuse-3 +2 | 3.137.0-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | mdast-util-to-hast | >= 13.0.0, < 13.2.1 | 13.2.1 | GHSA-4fh9-h7wg-q85m |