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: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

The vulnerability arises in markdown‑it when the html option or CommonMark preset is active. Input containing repeated unterminated inline HTML comments, processing instructions, declarations, or CDATA sections within a paragraph triggers a quadratic‑time search for a closing tag in src/rules_inline/html_inline.ts. The parser repeatedly rescans overlapping input, consuming disproportionate CPU and blocking the event loop. The outcome is a denial of service that affects the availability of any application that renders user‑supplied Markdown into HTML. The weakness is a predictable denial‑of‑service (CWE‑1333), uncontrolled resource consumption (CWE‑400), and excessive processing complexity (CWE‑407).

Affected Systems

All installations of markdown‑it before 14.3.3 and 15.0.3 are vulnerable when inline HTML parsing is enabled. The fix is available in releases 14.3.3 and 15.0.3. Products that include markdown‑it as a dependency, such as static site generators, blogging platforms, or content‑management systems, must identify the version and confirm whether the html option or CommonMark preset is turned on.

Risk and Exploitability

The CVSS score of 3.7 represents low overall severity, but the denial of service can be triggered with a single crafted Markdown payload. The EPSS score is currently unavailable and the issue is not listed in CISA KEV. Based on the description, an attacker would need the ability to supply Markdown to the application, such as through a web API endpoint, an editor, or any interface that accepts user‑generated Markdown. The exploit will consume CPU resources and block the event loop, causing the application or browser to become unresponsive. Because no privileged code execution is required, the risk to confidentiality or integrity is negligible, but the impact on availability can be significant in high‑traffic environments.

Generated by OpenCVE AI on October 20, 2026 at 07:15 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade markdown-it to version 14.3.3 or later, or 15.0.3 and higher, to apply the upstream fix
  • Disable the html option or avoid employing 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 20, 2026 at 07:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-vfgh-jcmw-g37q markdown-it: Quadratic-time denial of service in inline HTML parsing with html enabled
History

Mon, 26 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 20 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1333
References
Metrics threat_severity

None

threat_severity

Low


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-26T17:37:11.818Z

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

Link: CVE-2026-111766

cve-icon Vulnrichment

Updated: 2026-10-26T17:36:00.743Z

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-10-26T18:17:36.273

Link: CVE-2026-111766

cve-icon Redhat

Severity : Low

Publid Date: 2026-10-19T19:47:46Z

Links: CVE-2026-111766 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T07:15:11Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-407

    Inefficient Algorithmic Complexity