Is ansi-regex 5.0 vulnerable?
npm · 2 releases from 5.0.0 to 5.0.1 · latest ansi-regex is 6.5.0 · checked 2 Nov 2026
No known advisories in the last release
ansi-regex 5.0.1, the last 5.0 release, has no known advisories. 1 advisory affects earlier 5.0.x releases, so update to 5.0.1.
Update within 5.0:
npm install ansi-regex@5.0.1Fixed within 5.0.x, affecting earlier releases
Inefficient Regular Expression Complexity in chalk/ansi-regex
- Affected
- >=6.0.0 <6.0.1 · >=5.0.0 <5.0.1 · >=4.0.0 <4.1.1 · >=3.0.0 <3.0.1
- Fixed in
- 3.0.1, 4.1.1, 5.0.1, 6.0.1
Which of your client projects are still on ansi-regex 5.0?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact ansi-regex version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other ansi-regex versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.