# CVE-2021-4305: Woorank robots-txt-guard patterns.js makePathPattern redos

- Severity: Low 3.5 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 63% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-05T10:03:09.193Z
- Modified: 2026-06-17T04:19:28.147Z
- Also known as: GHSA-6g33-8w2q-4hxv
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- Woorank robots-txt-guard: n/a
- robots-txt-guard (npm): before 1.0.2
- bridgeline robots-txt-guard: before 2021-02-07

## Every score

- VulDB: CVSS:3.1 3.5 Low `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- VulDB: CVSS:3.0 3.5 Low `CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- VulDB: CVSS:2.0 2.3 Low `AV:A/AC:M/Au:S/C:N/I:N/A:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/Woorank/robots-txt-guard/pull/4> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://vuldb.com/?id.217448> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.217448> (permissions-required, signature, third-party-advisory, web)
- <https://github.com/Woorank/robots-txt-guard/commit/c03827cd2f9933619c23894ce7c98401ea824020> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4305> (advisory)
- <https://github.com/Woorank/robots-txt-guard> (package)

## Sources

- CVE List: [CVE-2021-4305](https://www.cve.org/CVERecord?id=CVE-2021-4305), CVE Terms of Use, modified 2024-11-25
- GitHub Advisory Database: [GHSA-6g33-8w2q-4hxv](https://github.com/advisories/GHSA-6g33-8w2q-4hxv), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-4305](https://nvd.nist.gov/vuln/detail/CVE-2021-4305), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4305 · Whole record: https://cve.day/CVE-2021-4305.json · Rebuilt by cve.day 2026-11-25T22:24:37.112Z
