Skip to content

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.0
yarn
yarn add strip-ansi@7.2.0
pnpm
pnpm add strip-ansi@7.2.0

Known vulnerabilities

AdvisorySeverityAffectedFixed 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

Is this in your code?

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