ansi-styles (npm)
ANSI escape codes for styling strings in the terminal
Advisories
1
Latest version
7.0.0
Released Jul 26, 2026
License
MIT
OpenSSF Scorecard
4.0 / 10
How to fix
Upgrading to the latest version is recommended.
Upgrade commands
npm
npm install ansi-styles@7.0.0yarn
yarn add ansi-styles@7.0.0pnpm
pnpm add ansi-styles@7.0.0Known vulnerabilities
| Advisory | Severity | Affected | Fixed in |
|---|---|---|---|
| MAL-2025-46967 Malicious code in ansi-styles (npm) |
Not rated yet | No fix yet |
Source: git+https://github.com/chalk/ansi-styles.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