Quadratic-time denial of service in markdown-it inline HTML parsing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 6 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
Summary
markdown-it versions from 15.0.0 before 15.0.3 and versions before 14.3.3 are affected. When the html option or commonmark preset is enabled, repeated unterminated inline HTML comments, processing instructions, declarations, or CDATA sections inside a paragraph cause the inline HTML parser to rescan overlapping input, which is an inefficient algorithmic complexity issue (CWE-407). A remote attacker who can supply Markdown for parsing can block the event loop or an unresponsive browser main thread with a denial of service.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| markdown-it | markdown-it | 15.0.0 to before 15.0.3; before 14.3.3 | 15.0.3, 14.3.3 | Patch available | CNA |
| — | markdown-it (npm) | before 14.3.3 | 14.3.3 | Patch available | GHSA-vfgh-jcmw-g37q |
| — | markdown-it (npm) | 15.0.0 to before 15.0.3 | 15.0.3 | Patch available | GHSA-vfgh-jcmw-g37q |
- markdown-it Vendormarkdown-it Affected 15.0.0 to before 15.0.3; before 14.3.3 Fixed in 15.0.3, 14.3.3 Patch available CNA
- markdown-it (npm) Vendor— Affected before 14.3.3 Fixed in 14.3.3 Patch available GHSA-vfgh-jcmw-g37q
- markdown-it (npm) Vendor— Affected 15.0.0 to before 15.0.3 Fixed in 15.0.3 Patch available GHSA-vfgh-jcmw-g37q
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:markdown-it_project:markdown-it:*:*:*:*:*:*:*:* | — | — | Markdown-it Project |
- cpe:2.3:a:markdown-it_project:markdown-it:*:*:*:*:*:*:*:* Versions — — ·Markdown-it Project
Remediation
Upgrade the npm markdown-it package to 14.3.3 for the 14.x line or to 15.0.3 for the 15.x line. Red Hat lists no available plan for Red Hat Build of Podman Desktop, Red Hat Ceph Storage 9, Red Hat Developer Hub 1, Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Dev Spaces, and Self-service automation portal 2.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
- Fix · CNA markdown-it (markdown-it) Fixed in 15.0.3, 14.3.3
- Fix · GHSA-vfgh-jcmw-g37q markdown-it (npm) Fixed in 14.3.3 Advisory →
- Fix · GHSA-vfgh-jcmw-g37q markdown-it (npm) Fixed in 15.0.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Podman Desktop | Affected | No fix yet: Fix deferred |
| Red Hat Ceph Storage 9 | Affected | No fix yet: Fix deferred |
| Red Hat Developer Hub 1 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
| Self-service automation portal 2 | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-20 Threatist record created from CVE-2026-111766
- 2026-10-20 Affected versions changed · Red Hat
- 2026-10-20 CVSS score added · Red Hat
- 2026-10-21 Alias added: GHSA-vfgh-jcmw-g37q
- 2026-10-21 Fix available: npm/[email protected], npm/[email protected] · GHSA-vfgh-jcmw-g37q
- 2026-10-21 CVSS score added · GHSA-vfgh-jcmw-g37q
- 2026-10-21 Weakness changed · GHSA-vfgh-jcmw-g37q
- 2026-10-21 7 new references · GHSA-vfgh-jcmw-g37q
- 2026-10-21 Affected versions changed · Red Hat
- 2026-10-26 CISA SSVC decision points changed
- 2026-10-27 Affected versions changed · Red Hat
References
Other 6
- https://github.com/markdown-it/markdown-it/security/advisories/GHSA-vfgh-jcmw-g37q
- https://github.com/markdown-it/markdown-it/commit/928bc8c11ded60181c0e7fc5aa954eec582e8e79
- 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
- https://github.com/markdown-it/markdown-it
More markdown-it vulnerabilities
- TI-2026-36071 linkify-it: Quadratic algorithmic complexity in LinkifyIt#match scan loop CVSS 4.0HIGH 8.7
- TI-2026-78161 Quadratic-time parsing in markdown-it link reference definitions CVSS 3.1HIGH 7.5
- TI-2026-76535 Quadratic time in markdown-it smartquotes causes denial of service CVSS 3.1HIGH 7.5
- TI-2026-42701 linkify-it: Quadratic-complexity DoS via the `mailto:` validator scan-loop on attacker text CVSS 3.1HIGH 7.5
- TI-2025-07289 Markdown-it 14.1.0 - Cross-site scripting (XSS) CVSS 4.0MEDIUM 6.9
- TI-2026-36244 markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-111766 · CVE Program
- CVE-2026-111766 · NVD
- FIRST EPSS
- GHSA-vfgh-jcmw-g37q · GitHub Advisory Database · CC BY 4.0
- CVE-2026-111766 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences