# ansi-regex (npm)

Regular expression for matching ANSI escape codes

- Latest: 6.6.0 (2026-11-08)
- Licence: MIT
- Downloads: 3002705330 last month
- Advisories on the latest version: 0

- MAL-2025-46966 : Malicious code in ansi-regex (npm)
- CVE-2021-3807 HIGH: Inefficient Regular Expression Complexity in chalk/ansi-regex Fixed in 5.0.1, 4.1.1, 3.0.1.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
