cve.bz

CVE-2026-111758 markdown-it markdown-it: Uncontrolled Resource Consumption

7.5 highEPSS 0.5%Fix available

High (7.5) in markdown-it markdown-it. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in markdown-it 14.3.3, 15.0.3.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-10-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • markdown-it (npm): fixed in 14.3.3, 15.0.3

Ask an AI about this CVE

Show the promptExplain CVE-2026-111758 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-111758?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-111758?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-111758 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
markdown-it>= 14.1.0, < 14.3.3
markdown-it>= 15.0.0, < 15.0.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gfr2-rv44-r23cnpmmarkdown-it>=14.1.0 <14.3.314.3.3
GHSA-gfr2-rv44-r23cnpmmarkdown-it>=15.0.0 <15.0.315.0.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 1 morenode-markdown-itno fix listedUBUNTU-CVE-2026-111758

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important severity because an unauthenticated remote attacker can exhaust server CPU resources without elevated privileges, leading to complete service disruption. In Red Hat environments, applications that process user-supplied Markdown content—such as Developer Hub and Dev Spaces—are vulnerable to event loop stalls when handling maliciously formatted documents. The flaw stems from quadratic parsing behavior on unclosed reference definitions, which allows relatively small multi-line payloads to consume significant processing time and render the shared service unresponsive.

Red Hat's mitigation

--- CME Mitigation Guidance (2026-10-20) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to disable the markdown-it reference block rule or avoid lazy string concatenation during multi-line link reference parsing: upgrade to markdown-it 14.3.3 and 15.0.3 (or the fixed Libgit/Forgejo/Ansible/Libgit2/Nextcloud/Markdownlint Cli/Rhoai/Odh Workbench Codeserver Datascience Cpu Py312 Rhel/Rhdh/Rhdh Hub Rhel/Devspaces/Code Rhel/Devspaces/Openvsx Rhel/Devspaces/Pluginregistry Rhel/Thrift/Ansible Automation Platform/Automation Portal/Rhoai/Odh Feature Server Rhel/Rhdh/Red Hat Developer Hub Backstage Plugin Orchestrator Backend/Ansible Automation Platform/Bootc Automation Portal Rhel/Rh Podman Desktop/Rhdh/Red Hat Developer Hub Backstage Plugin Lightspeed Backend/Redhat User Workloads/Mintmaker Renovate Image builds), which scan the source string directly by index position and enforce a 999-character limit on reference labels instead of lazily concatenating continuation lines, closing all 2 injection vectors (crafted multi-line unclosed link reference label, crafted multi-line unclosed link reference title). Until patched, this is a concern on applications parsing untrusted user-supplied Markdown with the reference block rule enabled, so disable the reference rule via configuration or restrict untrusted user Markdown input parsing. As a compensating measure, set per-process CPU time limits via RLIMIT_CPU to bound excessive processing time from quadratic string flattening and apply rate limiting and connection throttling to restrict repeated parsing requests. These controls limit blast radius and contain exploitation, but they do not fix the underlying quadratic cons-string flattening defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1316 Algorithmic Complexity Safeguards (Pattern/Regex Execution Limits) (high)

ProductPackageStateAdvisory
Red Hat Build of Podman Desktoprh-podman-desktopAffected
Red Hat Ceph Storage 9thriftFix deferred
Red Hat Developer Hub 1rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backendNot affected
Red Hat Developer Hub 1rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backendNot affected
Red Hat Developer Hub 1rhdh/rhdh-hub-rhel9Affected
Red Hat Hardened Imageslibgit2_1.9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-feature-server-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Affected
Red Hat OpenShift Dev Spacesdevspaces/code-rhel9Affected
Red Hat OpenShift Dev Spacesdevspaces/openvsx-rhel9Affected
Red Hat OpenShift Dev Spacesdevspaces/pluginregistry-rhel9Not affected
Self-service automation portal 2ansible-automation-platform/automation-portalAffected
Self-service automation portal 2ansible-automation-platform/bootc-automation-portal-rhel9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-111758.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON