Description
markdown-it is a Markdown parser. Prior to 14.3.3 and 15.0.3, when the html option or commonmark preset is enabled and the constructs occur inside a paragraph, attacker-controlled Markdown containing repeated unterminated inline HTML comments, processing instructions, declarations, or CDATA sections reaches src/rules_inline/html_inline.ts. Its HTML_TAG_RE match searches the remaining suffix for the appropriate terminator; when no terminator is present, parsing advances to the next opener and repeats the match over overlapping input, causing quadratic processing and denial of service through event-loop blocking or an unresponsive browser main thread. HTML blocks and the default HTML-disabled configuration are not affected by these payloads. This issue is fixed in versions 14.3.3 and 15.0.3.
Published: 2026-10-19
Score: 3.7 Low
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

markdown‑it is a Markdown parser that, before versions 14.3.3 and 15.0.3, processes inline HTML when the html option or commonmark preset is enabled. Repeated unterminated inline HTML comments, processing instructions, declarations, or CDATA sections inside a paragraph trigger a quadratic‑time search for a closing tag. The parser repeatedly rescans overlapping input, causing event‑loop blocking or an unresponsive browser main thread. The affected payloads only impact inline HTML parsing, so normal Markdown rendering and HTML blocks with html disabled are unaffected.

Affected Systems

The vulnerability affects all installations of markdown‑it of any major version prior to 14.3.3 and 15.0.3 when the html option or commonmark preset is enabled. Users must identify the component version through package metadata and confirm whether inline HTML parsing is turned on.

Risk and Exploitability

The CVSS score of 3.7 indicates low severity, but the exploit is trivial for an attacker who can supply Markdown input, such as through an API endpoint or a blog post editor. The EPSS score is unavailable, and the issue is not listed in CISA KEV, but the denial‑of‑service nature may still be valuable to an attacker seeking to degrade service availability.

Generated by OpenCVE AI on October 19, 2026 at 21:42 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade markdown‑it to 14.3.3 or later, or 15.0.3 and higher, to apply the upstream fix
  • Disable the html option or avoid the commonmark preset in environments where inline HTML parsing is not required
  • Validate and limit the size of Markdown input before passing it to the parser to mitigate resource exhaustion attacks

Generated by OpenCVE AI on October 19, 2026 at 21:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Markdown-it
Markdown-it markdown-it
Vendors & Products Markdown-it
Markdown-it markdown-it

Mon, 19 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
Description markdown-it is a Markdown parser. Prior to 14.3.3 and 15.0.3, when the html option or commonmark preset is enabled and the constructs occur inside a paragraph, attacker-controlled Markdown containing repeated unterminated inline HTML comments, processing instructions, declarations, or CDATA sections reaches src/rules_inline/html_inline.ts. Its HTML_TAG_RE match searches the remaining suffix for the appropriate terminator; when no terminator is present, parsing advances to the next opener and repeats the match over overlapping input, causing quadratic processing and denial of service through event-loop blocking or an unresponsive browser main thread. HTML blocks and the default HTML-disabled configuration are not affected by these payloads. This issue is fixed in versions 14.3.3 and 15.0.3.
Title markdown-it: Quadratic-time denial of service in inline HTML parsing with html enabled
Weaknesses CWE-400
CWE-407
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}


Subscriptions

Markdown-it Markdown-it
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-19T19:47:46.488Z

Reserved: 2026-10-16T17:52:09.082Z

Link: CVE-2026-111766

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-19T20:17:52.247

Modified: 2026-10-19T21:13:39.973

Link: CVE-2026-111766

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T21:45:04Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-407

    Inefficient Algorithmic Complexity