CVE-2021-40895: todo-regex - Regular Expression Denial of Service
- Cve: CVE-2021-40895
- Name: todo-regex - Regular Expression Denial of Service
- Description: A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in todo-regex v0.1.1 when matching crafted invalid TODO statements.
- Impact: Attackers can cause denial of service by triggering excessive regex processing, leading to application slowdown or crash.
- Remediation: Update to the latest version of todo-regex that addresses this vulnerability or apply patches if available.
- 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.01071
- Epss percentile: 0.65559
- Assignee: [email protected]
- Published at: 2022-06-27T10:15:08Z
- Age in days: 1611
- Modified at: 2026-06-17T04:07:36Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-40895
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/yetingli/SaveResults/blob/main/js/todo-regex.js | nvd | 2022-06-27 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/yetingli/SaveResults/blob/main/js/todo-regex.js | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| todo-regex_project:todo-regex | = 0.1.1 | no | nvd | /v1/products/todo-regex_project/todo-regex |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-06-27
- Remote: yes
- 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, exposed hosts