strip-ansi (npm)
Strip ANSI escape codes from a string
Advisories
1
Latest version
7.2.0
Released Feb 26, 2026
License
MIT
OpenSSF Scorecard
3.7 / 10
How to fix
Upgrading to the latest version is recommended.
Upgrade commands
npm
npm install strip-ansi@7.2.0yarn
yarn add strip-ansi@7.2.0pnpm
pnpm add strip-ansi@7.2.0Known vulnerabilities
| Advisory | Severity | Affected | Fixed in |
|---|---|---|---|
| MAL-2025-46980 Malicious code in strip-ansi (npm) |
Not rated yet | No fix yet |
Source: git+https://github.com/chalk/strip-ansi.git
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor