Skip to content

wrap-ansi (npm)

Wordwrap a string with ANSI escape codes

Advisories
1
Latest version
10.0.2
Released Sep 21, 2026
License
MIT
OpenSSF Scorecard
4.0 / 10

How to fix

Upgrading to the latest version is recommended.

Upgrade commands
npm
npm install wrap-ansi@10.0.2
yarn
yarn add wrap-ansi@10.0.2
pnpm
pnpm add wrap-ansi@10.0.2

Known vulnerabilities

AdvisorySeverityAffectedFixed in
MAL-2025-46983
Malicious code in wrap-ansi (npm)
Not rated yet No fix yet

Source: git+https://github.com/chalk/wrap-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