Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. markdown-it
  4. ›
  5. CVE-2026-111766

CVE-2026-111766: markdown-it: Quadratic-time denial of service in inline HTML parsing with html enabled

October 20, 2026

With html: true, markdown-it takes quadratic time to parse repeated unterminated HTML constructs inside a paragraph. This affects HTML comments (<!--), processing instructions (<?), declarations (<!A), and CDATA sections (<![CDATA[).

An attacker-controlled input of a few hundred kilobytes can block the Node.js event loop for seconds or tens of seconds. The default configuration has HTML disabled, but the commonmark preset enables it.

The issue was reported against the published markdown-it@15.0.2 package on Node.js 20 and reproduced on the current source with Node.js 24.16.0.

References

  • github.com/advisories/GHSA-vfgh-jcmw-g37q
  • github.com/markdown-it/markdown-it/commit/928bc8c11ded60181c0e7fc5aa954eec582e8e79
  • github.com/markdown-it/markdown-it/commit/d99f48839d37af6fd8a2617516c43dab90755503
  • github.com/markdown-it/markdown-it/releases/tag/14.3.3
  • github.com/markdown-it/markdown-it/releases/tag/15.0.3
  • github.com/markdown-it/markdown-it/security/advisories/GHSA-vfgh-jcmw-g37q
  • nvd.nist.gov/vuln/detail/CVE-2026-111766

Code Behaviors & Features

Detect and mitigate CVE-2026-111766 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 14.3.3, all versions starting from 15.0.0 before 15.0.3

Fixed versions

  • 14.3.3
  • 15.0.3

Solution

Upgrade to versions 14.3.3, 15.0.3 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-407: Inefficient Algorithmic Complexity

Source file

npm/markdown-it/CVE-2026-111766.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:41 +0000.