Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ansi-regex
  4. ›
  5. CVE-2021-3807

CVE-2021-3807: Inefficient Regular Expression Complexity

September 17, 2021 (updated July 10, 2023)

ansi-regex is vulnerable to Inefficient Regular Expression Complexity

References

  • huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994
  • nvd.nist.gov/vuln/detail/CVE-2021-3807

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

Version 3.0.0, all versions starting from 4.0.0 before 4.1.1, version 5.0.0, version 6.0.0

Fixed versions

  • 3.0.1
  • 4.1.1
  • 5.0.1
  • 6.0.1

Solution

Upgrade to versions 6.0.1, 5.0.1, 4.1.1, 3.0.1 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/ansi-regex/CVE-2021-3807.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:05 +0000.