Skip to content

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.0
yarn
yarn add ansi-styles@7.0.0
pnpm
pnpm add ansi-styles@7.0.0

Known vulnerabilities

AdvisorySeverityAffectedFixed 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

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