# CVE-2022-21670: Uncontrolled Resource Consumption in markdown-it

- 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): 2.42%, higher than 84% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-10T20:40:10.000Z
- Modified: 2026-06-17T04:26:43.707Z
- Also known as: GHSA-6vfc-qv3f-vr6c
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

markdown-it is a Markdown parser. Prior to version 1.3.2, special patterns with length greater than 50 thousand characterss could slow down the parser significantly. Users should upgrade to version 12.3.2 to receive a patch. There are no known workarounds aside from upgrading.

(As written by CVE List.)

## Affected

- markdown-it markdown-it: < 12.3.2
- markdown-it (npm): before 12.3.2
- markdown-it_project markdown-it: up to 12.3.1

## 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`
- NVD: 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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6c> (exploit, third-party-advisory, web)
- <https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21670> (advisory)
- <https://github.com/markdown-it/markdown-it> (package)

## Sources

- CVE List: [CVE-2022-21670](https://www.cve.org/CVERecord?id=CVE-2022-21670), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-6vfc-qv3f-vr6c](https://github.com/advisories/GHSA-6vfc-qv3f-vr6c), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-21670](https://nvd.nist.gov/vuln/detail/CVE-2022-21670), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21670 · Whole record: https://cve.day/CVE-2022-21670.json · Rebuilt by cve.day 2026-11-25T22:58:09.168Z
