CVE-2022-21680
Last modified
CVE-2022-21680 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `block.def` may cause catastrophic backtracking against some strings and lead to a regular expression denial of service (ReDoS). EPSS estimates a 2.83% chance of exploitation in the next 30 days.
Description
Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `block.def` may cause catastrophic backtracking against some strings and lead to a regular expression denial of service (ReDoS). Anyone who runs untrusted markdown through a vulnerable version of marked and does not use a worker with a time limit may be affected. This issue is patched in version 4.0.10. As a workaround, avoid running untrusted markdown through marked or run marked on a worker thread and set a reasonable time limit to prevent draining resources.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Marked Project | Marked | < 4.0.10 |
| Fedoraproject | Fedora | 36 |
References
- https://github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0Patch, Third Party Advisory
- https://github.com/markedjs/marked/releases/tag/v4.0.10Release Notes, Third Party Advisory
- https://github.com/markedjs/marked/security/advisories/GHSA-rrrm-qjm4-v8hfExploit, Third Party Advisory
- https://github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0Patch, Third Party Advisory
- https://github.com/markedjs/marked/releases/tag/v4.0.10Release Notes, Third Party Advisory
- https://github.com/markedjs/marked/security/advisories/GHSA-rrrm-qjm4-v8hfExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-21680?
How severe is CVE-2022-21680?
How do I fix CVE-2022-21680?
Are you affected by CVE-2022-21680?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
