fix(deps): update dependency mdast-util-to-hast to v13 [security] #1201
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
12.3.0->13.2.1GitHub Vulnerability Alerts
CVE-2025-66400
Impact
Multiple (unprefixed) classnames could be added in markdown source by using character references.
This could make rendered user supplied markdown
codeelements appear like the rest of the page.The following markdown:
Would create
<pre><code class="language-js xss"></code></pre>If your page then applied
.xssclasses (or listeners in JS), those apply to this element.For more info see https://github.com/ChALkeR/notes/blob/master/Improper-markup-sanitization.md#unsanitized-class-attribute
Patches
The bug was patched. When using regular semver, run
npm install. For exact ranges, make sure to use13.2.1.Workarounds
Update.
References
Release Notes
syntax-tree/mdast-util-to-hast (mdast-util-to-hast)
v13.2.1Compare Source
Fix
ab3a795Fix support for spaces in class namesTypes
efb5312Refactor to use@importsa5bc210Add declaration mapsFull Changelog: syntax-tree/mdast-util-to-hast@13.2.0...13.2.1
v13.2.0Compare Source
Types
24f4576Add type fordata.metaon elements to hastFull Changelog: syntax-tree/mdast-util-to-hast@13.1.0...13.2.0
v13.1.0Compare Source
Add
59ecd14Add support forfileinoptionsFull Changelog: syntax-tree/mdast-util-to-hast@13.0.2...13.1.0
v13.0.2Compare Source
b186995FixhPropertiesontableCellby @kanemu in #71
Full Changelog: syntax-tree/mdast-util-to-hast@13.0.1...13.0.2
v13.0.1Compare Source
Fix
7ff28fbFix trimming of whitespace around breaksFull Changelog: syntax-tree/mdast-util-to-hast@13.0.0...13.0.1
v13.0.0Compare Source
Change
67ef76cUpdate@types/hast,@types/mdast, utilitiesmigrate: update too
b815f5eChange to require Node.js 16migrate: update too
33442ccChange to useexportsmigrate: don’t use private APIs
56c88e4Fix to match GH for HTML generated for backreferencesmigrate: use the function form of
footnoteBackLabelfor i18n, seedefaultFootnoteBackLabelfor inspirationffe7e47Change to always return a nodemigrate: expect an empty root instead of nothing
ffbb8a8Change to expect, yieldundefinedmigrate: expect
undefinedeverywhere, notnullc13fe7fChange to remove support forFootnotenodesmigrate: use GFM, which does not have “inline” notes
6fc783aChange to remove support for ancientlangoncodewith spacesmigrate: you’re fine, this hasn’t been a thing for years
72b8a68Change to use maps for definitions onstatemigrate: if you make your own handles, expect maps
b328aa9Change to remove function form ofState, use plain objectmigrate: if you make your own handles, create nodes yourself, use
state.applyDataif needed40e1d29Change to removeall,onehelpersmigrate: if you make your own handles, use
state.all,state.one1894044Change to removeHtypemigrate: use
Statee804231Change to removecomplex-types.d.tsmigrate: use main module
4df5d41Change to deep clone passed through nodesmigrate: should be fine
Types
52905ebAdd smarter types forpassThroughmigrate: type your mdast/hast nodes by extending the content interfaces
6f555a0Add supported data fields toDataofmdastmigrate: pass correct values in
node.dataFix
3e300eaFix to keep content around forhNameon textFull Changelog: syntax-tree/mdast-util-to-hast@12.3.0...13.0.0
Configuration
📅 Schedule: Branch creation - "" in timezone Europe/Zurich, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.