Vulnerability · Published Jan 5, 2023 · Assigned by VulDB
CVE-2021-4305Woorank robots-txt-guard patterns.js makePathPattern redos
Low 3.5
In plain English
A low-severity regular-expression denial of service in robots-txt-guard from Woorank. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A vulnerability was found in Woorank robots-txt-guard. It has been rated as problematic. Affected by this issue is the function makePathPattern of the file lib/patterns.js. The manipulation of the argument pattern leads to inefficient regular expression complexity. The exploit has been disclosed to the public and may be used. The name of the patch is c03827cd2f9933619c23894ce7c98401ea824020. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-217448.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | robots-txt-guard | 1.0.2 | GHSA-6g33-8w2q-4hxv |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Woorank | robots-txt-guard | n/a |
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
References
- https://vuldb.com/?id.217448 vdb-entry, technical-description
- https://vuldb.com/?ctiid.217448 signature, permissions-required
- https://github.com/Woorank/robots-txt-guard/pull/4 exploit, issue-tracking
- https://github.com/Woorank/robots-txt-guard/commit/c03827cd2f9933619c23894ce7c98401ea824020 patch