Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. robots-txt-guard
  4. ›
  5. CVE-2021-4305

CVE-2021-4305: Inefficient Regular Expression Complexity

January 5, 2023 (updated January 9, 2023)

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.

References

  • github.com/Woorank/robots-txt-guard/commit/c03827cd2f9933619c23894ce7c98401ea824020
  • github.com/Woorank/robots-txt-guard/pull/4
  • github.com/advisories/GHSA-6g33-8w2q-4hxv
  • nvd.nist.gov/vuln/detail/CVE-2021-4305
  • vuldb.com/?ctiid.217448
  • vuldb.com/?id.217448

Code Behaviors & Features

Detect and mitigate CVE-2021-4305 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.2

Fixed versions

  • 1.0.2

Solution

Upgrade to version 1.0.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/robots-txt-guard/CVE-2021-4305.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.