Malicious Code Injection in chalk-figlet Package

chalk-figlet Updated 29 Sep 2026

Summary

28/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17223: Malicious code in chalk-figlet (npm). Affects chalk-figlet versions 1.2.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The chalk-figlet package is a Node.js library that combines the functionality of chalk (for styling terminal output) with figlet (for creating ASCII art text). It is commonly used in command-line applications to enhance user interfaces. However, this package has been found to contain malicious code that poses significant security risks.

Vulnerability Detail

The vulnerability originates from a postinstall script declared in the package.json file, which executes a malicious script during the installation process. This script downloads a binary from a hex-obfuscated URL and executes it, masquerading as a legitimate Windows system file. The implications of this vulnerability include unauthorized access to the system, potential data breaches, and the installation of malware.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall chalk-figlet

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can avoid using the chalk-figlet package until it has been updated. Additionally, you can manually remove the package from your project by running: npm uninstall chalk-figlet.

Conclusion

The chalk-figlet package has been identified as containing malicious code that can compromise system security. It is crucial for developers to update to the latest version or remove the package to mitigate risks associated with this vulnerability.

See every vulnerability recorded for chalk-figlet →

Share this vulnerability

FAQ

The malicious code downloads and executes a binary file from an obfuscated URL, posing as a legitimate system file.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

The risks include unauthorized access to your system, potential data breaches, and the installation of harmful software.

Yes, updating the chalk-figlet package to the latest version will address the vulnerability.

As a temporary measure, you should uninstall the chalk-figlet package and refrain from using it until a secure version is available.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall chalk-figlet

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback