CVE-2022-21670
Uncontrolled Resource Consumption in markdown-it
5.3
MEDIUM
CVSS 3.1
EPSS 1.1%
Description
### Impact Special patterns with length > 50K chars can slow down parser significantly. ```js const md = require('markdown-it')(); md.render(`x ${' '.repeat(150000)} x \nx`); ``` ### Patches Upgrade to v12.3.2+ ### Workarounds No. ### References Fix + test sample: https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101
How to fix CVE-2022-21670
To remediate CVE-2022-21670, upgrade the affected package to a fixed version below.
- —upgrade to 10.0.0+dfsg-2+deb11u1 or later
- —upgrade to 12.3.2 or later
Is CVE-2022-21670 being exploited?
Low — EPSS is 1.1%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 10.0.0+dfsg-2+deb11u1
- from 0, < 12.3.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |