CVE-2021-4305
HIGH 7.5CVSS 3.1robots-txt-guard Inefficient Regular Expression Complexity vulnerability
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.
- Published
- 5 Jan 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-6g33-8w2q-4hxv
- Sources
- NVDJSONOSV GHSA-6g33-8w2q-4hxvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | LOW 3.5 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | LOW 2.3 | AV:A/AC:M/Au:S/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bridgeline | robots-txt-guardcpe:2.3:a:bridgeline:robots-txt-guard:*:*:*:*:*:*:*:* |
< 2021-02-07 | 2021-02-07 |
| OSV | npm | robots-txt-guard | < 1.0.2 | 1.0.2 |
References
- https://github.com/Woorank/robots-txt-guard/commit/c03827cd2f9933619c23894ce7c98401ea824020 · Patch, Third Party Advisory, WEB
- https://github.com/Woorank/robots-txt-guard/pull/4 · Patch, Third Party Advisory, WEB
- https://vuldb.com/?ctiid.217448 · Permissions Required, Third Party Advisory, WEB
- https://vuldb.com/?id.217448 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-4305 · ADVISORY
- https://github.com/Woorank/robots-txt-guard · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 5 Jan 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 5 Jan 2023)