CVE-2026-48988 markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
markdown-it is a Markdown parser. Versions 14.1.1 and below contain a denial-of-service vulnerability when typographer: true is enabled, due to quadratic (O(n^2)) processing in the smartquotes rule. The issue stems from repeatedly modifying strings with replaceAt(), which performs O(n) slicing and concatenation per quote character. This can cause excessive CPU consumption when parsing quote-heavy, user-supplied markdown and may let attackers degrade or disrupt service availability. Although typographer is disabled by default, many production apps enable it for smart typography, making the issue relevant. This issue has been fixed in version 14.2.0.
Upgrade path
24 packages: 3 fixed, 20 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-markdown-it(Debian 12) | = 22.2.3+dfsg+~12.2.3-2; = 22.2.3+dfsg+~12.2.3-3; = 22.2.3+dfsg+~12.2.3-4; = 22.2.3+dfsg+~12.2.3-5 +1 more | No fix listed | No fix yet |
| debian/node-markdown-it(Debian 13) | = 22.2.3+dfsg+~12.2.3-2; = 22.2.3+dfsg+~12.2.3-3; = 22.2.3+dfsg+~12.2.3-4; = 22.2.3+dfsg+~12.2.3-5 +1 more | No fix listed | No fix yet |
| redhat/ansible-automation-platform/automation-portal(Red Hat ansible_portal 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/bootc-automation-portal-rhel9(Red Hat ansible_portal 2) | All versions | No fix listed | No fix yet |
| redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/devspaces/openvsx-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/devspaces/pluginregistry-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/rh-podman-desktop.git(Red Hat podman_desktop 1) | All versions | No fix listed | No fix yet |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend-module-loki(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-feature-server-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/thrift(Red Hat ceph_storage 9) | All versions | No fix listed | No fix yet |
| ubuntu/node-markdown-it(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-markdown-it(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-markdown-it(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-markdown-it(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-markdown-it(Debian 14) | < 22.2.3+dfsg+~12.2.3-5; = 22.2.3+dfsg+~12.2.3-2; = 22.2.3+dfsg+~12.2.3-3; = 22.2.3+dfsg+~12.2.3-4 | 22.2.3+dfsg+~12.2.3-5 | Fixed |
| markdown-it project markdown-it | < 14.2.0 | 14.2.0 | Fixed |
| npm markdown-it(npm) | < 14.2.0; <= 14.1.1 | 14.2.0 | Fixed |
| markdown-it | = < 14.2.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| markdown-it | = < 14.2.0 | No fix listed |
| debian/node-markdown-it(Debian:12) | All versions | No fix listed |
| debian/node-markdown-it(Debian:14) | < 22.2.3+dfsg+~12.2.3-5 | 22.2.3+dfsg+~12.2.3-5 |
| debian/node-markdown-it(Debian:13) | All versions | No fix listed |
| redhat/rh-podman-desktop.git(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/thrift(Red Hat:ceph_storage:9) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend-module-loki(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhoai/odh-feature-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/devspaces/openvsx-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/devspaces/pluginregistry-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal(Red Hat:ansible_portal:2) | All versions | No fix listed |
| redhat/ansible-automation-platform/bootc-automation-portal-rhel9(Red Hat:ansible_portal:2) | All versions | No fix listed |
| npm markdown-it(npm) | <= 14.1.1 | No fix listed |
| debian/node-markdown-it(Debian:12) | = 22.2.3+dfsg+~12.2.3-2 | No fix listed |
| debian/node-markdown-it(Debian:12) | = 22.2.3+dfsg+~12.2.3-3 | No fix listed |
| debian/node-markdown-it(Debian:12) | = 22.2.3+dfsg+~12.2.3-4 | No fix listed |
| debian/node-markdown-it(Debian:12) | = 22.2.3+dfsg+~12.2.3-5 | No fix listed |
| debian/node-markdown-it(Debian:13) | = 22.2.3+dfsg+~12.2.3-2 | No fix listed |
| debian/node-markdown-it(Debian:13) | = 22.2.3+dfsg+~12.2.3-3 | No fix listed |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-markdown-it(Debian:13) | = 22.2.3+dfsg+~12.2.3-4 | No fix listed |
| debian/node-markdown-it(Debian:13) | = 22.2.3+dfsg+~12.2.3-5 | No fix listed |
| debian/node-markdown-it(Debian:14) | = 22.2.3+dfsg+~12.2.3-2 | No fix listed |
| debian/node-markdown-it(Debian:14) | = 22.2.3+dfsg+~12.2.3-3 | No fix listed |
| debian/node-markdown-it(Debian:14) | = 22.2.3+dfsg+~12.2.3-4 | No fix listed |
| ubuntu/node-markdown-it(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-markdown-it(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-markdown-it(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-markdown-it(Ubuntu:26.10) | All versions | No fix listed |
| markdown-it project markdown-it | < 14.2.0 | 14.2.0 |
| npm markdown-it(npm) | < 14.2.0 | 14.2.0 |
References
- https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfq exploit mitigation vendor-advisory
- https://github.com/markdown-it/markdown-it/commit/9ce2087562c45d1e5ddd9f76b990f4b3fbe040e5 patch
- Debian Security Tracker CVE-2026-48988 vendor-advisory
- bugs.debian.org issue-tracking
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2490150 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Ubuntu CVE tracker vendor-advisory
- github.com product