fix: bump mdast-util-to-hast to ^13.2.1 (CVE-2025-66400)#41
Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #41 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 163 185 +22
=========================================
+ Hits 163 185 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
11b404e to
760456a
Compare
|
This isn't needed, the fix is already in range.
That is a security risk in Yarn Berry, they should fix that. |
|
Hi! This was closed. Team: If this was merged, please describe when this is likely to be released. Otherwise, please add one of the |
|
There is also |
Initial checklist
Description of changes
Bumps
mdast-util-to-hastminimum version from^13.0.0to^13.2.1to fix CVE-2025-66400.CVE-2025-66400 — versions 13.0.0–13.2.0 allow injection of arbitrary class names via character-encoded whitespace in the markdown code block
langattribute, which could make elements appear to belong to other CSS classes and enable XSS. Fixed in 13.2.1.Motivation
I use Yarn Berry with
nodeLinker: pnpand strict package resolution (strictPeerDependencies). In this setup, the^semver range is not sufficient — Yarn Berry resolves and locks the exact version from the range at install time, and if the lockfile was generated before 13.2.1 was published it will keep resolving to a vulnerable version. Tightening the minimum version inpackage.jsonensures Yarn Berry won't resolve to a vulnerable release.References