# CVE-2026-48988: markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-15T20:41:06.000Z
- Modified: 2026-09-10T03:51:08.074Z
- Also known as: GHSA-6v5v-wf23-fmfq
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- markdown-it markdown-it: < 14.2.0
- markdown-it (npm): before 14.2.0
- markdown-it_project markdown-it: before 14.2.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfq> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/markdown-it/markdown-it/commit/9ce2087562c45d1e5ddd9f76b990f4b3fbe040e5> (patch)
- <https://github.com/markdown-it/markdown-it> (package)

## Sources

- CVE List: [CVE-2026-48988](https://www.cve.org/CVERecord?id=CVE-2026-48988), CVE Terms of Use, modified 2026-06-18
- GitHub Advisory Database: [GHSA-6v5v-wf23-fmfq](https://github.com/advisories/GHSA-6v5v-wf23-fmfq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48988](https://nvd.nist.gov/vuln/detail/CVE-2026-48988), Public domain, modified 2026-06-24

---

Page: https://cve.day/CVE-2026-48988 · Whole record: https://cve.day/CVE-2026-48988.json · Rebuilt by cve.day 2026-11-25T22:59:25.003Z
