ansi-regex (npm)

Known vulnerabilities and malicious package reports for ansi-regex on npm, live from OSV, with CISA KEV exploitation status and EPSS scores.

Known package reports

1 malicious package report and 1 vulnerability returned by OSV. Check a specific version to see which reports apply.

If you installed a reported malicious release, remove it and rotate the credentials that machine could access. Upgrading does not undo code that already ran.

MAL-2025-46966: Malicious package report

Malicious code in ansi-regex (npm)

Published .

Updated .

Reported affected releases: 6.2.1.

GHSA-93q8-gq69-wqmw: Vulnerability

Inefficient Regular Expression Complexity in chalk/ansi-regex

Published .

Updated .

Affected ranges: introduced 6.0.0, fixed 6.0.1; introduced 5.0.0, fixed 5.0.1; introduced 4.0.0, fixed 4.1.1; introduced 3.0.0, fixed 3.0.1.

Fix versions reported by the advisory: 6.0.1, 5.0.1, 4.1.1, 3.0.1.

Severity: HIGH.

CVE-2021-3807

Source: OSV, including OpenSSF malicious-package reports and GitHub advisories. No known report is not proof a package is safe.