CVE-2022-21681: Marked - Regular Expression Denial of Service
- Cve: CVE-2022-21681
- Name: Marked - Regular Expression Denial of Service
- Description: Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `inline.reflinkSearch` may cause catastrophic backtracking against some strings and lead to a denial of service (DoS). 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.
- Impact: Attackers can cause denial of service by triggering excessive backtracking, potentially draining server resources.
- Remediation: Update to version 4.0.10 or later.
- Vulnerability type: misconfiguration
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.02893
- Epss percentile: 0.87161
- Assignee: [email protected]
- Published at: 2022-01-14T17:15:13Z
- Age in days: 1775
- Modified at: 2026-06-17T04:26:45Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-21681
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-400 | Uncontrolled Resource Consumption |
| CWE-1333 | Inefficient Regular Expression Complexity |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/markedjs/marked/security/advisories/GHSA-5v2h-r2cx-5xgj | nvd | 2022-01-14 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| marked_project:marked | < 4.0.10 | no | nvd | /v1/products/marked_project/marked |
| fedoraproject:fedora | = 36 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| markedjs/marked | commit, package, security_advisory | yes | /v1/repositories/markedjs/marked |
Index
- Repositories: 138
- Repositories high signal: 56
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-01-14
- Remote: yes
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports