CVE-2021-4305 json
Woorank robots-txt-guard patterns.js makePathPattern redos
published 2023-01-05 3 y ago modified 2026-06-17 4 mo ago also GHSA-6g33-8w2q-4hxv , EUVD-2023-0360
- cvss
- 3.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm robots-txt-guard 1.0.2
- bridgeline robots-txt-guard 2021-02-07
- github.com/Woorank/robots-txt-guard@c03827c commit
- github.com/Woorank/robots-txt-guard#4 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
1.03% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/Woorank/robots-txt-guard/pull/4 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.5 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| CNA | 3.0 | 3.5 | CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| CNA | 2.0 | 2.3 | AV:A/AC:M/Au:S/C:N/I:N/A:P |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | robots-txt-guard | <1.0.2 |
1.0.2 |
Affected products
- Woorank robots-txt-guard
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/Woorank/robots-txt-guard/pull/4
exploit, issue-tracking, web, patch, third-party-advisory
-
github.com
/Woorank/robots-txt-guard/commit/c03827cd2f9933619c23894ce7c98401ea824020
patch, web, third-party-advisory
-
vuldb.com
/?id.217448
vdb-entry, technical-description, web, third-party-advisory
-
vuldb.com
/?ctiid.217448
signature, permissions-required, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-4305
advisory
-
github.com
/Woorank/robots-txt-guard
package
Sources
- CVE List CVE-2021-4305
- GitHub Advisory GHSA-6g33-8w2q-4hxv
- NVD CVE-2021-4305
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.