Live threats

All CVEs / Ansi-regex Project

CVE-2021-3807Ansi-regex Project Ansi-regex

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.6%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Sep 17, 2021
Updated
Oct 8, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

ansi-regex is vulnerable to Inefficient Regular Expression Complexity

Original NVD text.

What to do

  1. Apply the vendor's security update for Ansi-regex.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm ansi-regex ≥ 6.0.0 < 6.0.1 6.0.1 npm install ansi-regex@6.0.1
npm ansi-regex ≥ 5.0.0 < 5.0.1 5.0.1 npm install ansi-regex@5.0.1
npm ansi-regex ≥ 4.0.0 < 4.1.1 4.1.1 npm install ansi-regex@4.1.1
npm ansi-regex ≥ 3.0.0 < 3.0.1 3.0.1 npm install ansi-regex@3.0.1

Per OSV / GitHub Advisories (GHSA-93q8-gq69-wqmw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ansi-regex_projectansi-regex≥ 4.0.0 < 4.1.1
ansi-regex_projectansi-regex3.0.0
ansi-regex_projectansi-regex5.0.0
ansi-regex_projectansi-regex6.0.0
oraclecommunications_cloud_native_core_policy1.15.0

Official sources

References

Links published by the sources. Open them with care.