Zurück zur Liste

markdown-it linkify: true has two quadratic paths, so a few hundred KB of markdown blocks the event loop for tens of seconds — GHSA-253C-MCHW-3W2R

GitHub · GitHub · GHSA-253C-MCHW-3W2R

ID
GHSA-253C-MCHW-3W2R
Datum
Quelle
GitHub
Vendor
GitHub
Risiko
mittel
CVSS
6.3

Zusammenfassung

## Summary Two independent quadratic paths in the `linkify: true` handling. Both are in markdown-it's own code rather than in linkify-it, which stays linear on both payloads. `src/rules_core/linkify.ts` calls `arrayReplaceAt` once per linkified text token, and that rebuilds the whole `children` array each time. A paragraph of N soft-broken lines is one inline token with about 2N children, so you get N rebuilds over…

Zeitlicher Verlauf

Von der Quelle veröffentlicht
2026-09-29

Risikokontext

  • Gemeldeter Schweregrad oder Risikowert: mittel.
  • Gemeldeter CVSS-Wert: 6.3 von 10.
  • Prüfe die Exponierung für das betroffene Produkt oder die Produktfamilie: npm: markdown-it.

Produkt

npm: markdown-it

Was tun?

Allgemeine, vorsichtige Schritte (bitte prüfe die offizielle Quelle für Details):

  • Prüfe Exponierung und plane Maßnahmen nach Risiko und Umfeld.
  • Identifiziere betroffene Produktversionen und prüfe, ob du betroffen bist.
  • Spiele Hersteller-Updates/Patches ein oder setze empfohlene Mitigations um.
  • Lies das offizielle Advisory für betroffene Versionen und konkrete Schritte.

Offizielles Advisory

Nachweise und Herkunft

Kanonische Advisory-ID
GHSA-253C-MCHW-3W2R
Quelle
GitHub
Vendor
GitHub
Von der Quelle veröffentlicht
2026-09-29
Letzte Quellenaktivität
2026-09-29
Kuratiert von
hlukh.ch

Verwandte Hinweise und Zusammenhänge

Diese Hinweise sind anhand gemeinsamer CVE-, Produkt-, Hersteller-, Quellen- oder Zeitsignale verknüpft.