Malicious Code Detected in chalc Package - Security Alert
Summary
MAL-2025-16769: Malicious code in chalc (npm). Affected versions are not published. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The chalc package is an npm library designed for specific functionalities within JavaScript applications. It is utilized by developers for various purposes, including data manipulation and processing. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that incorporate it.
Vulnerability Detail
The vulnerability in the chalc package stems from the inclusion of malicious code that can compromise the security of applications using it. This code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address it promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall chalc
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 measure, users can remove the chalc package from their project until a secure version is released. This can be done by executing the command: 'npm uninstall chalc'.
Conclusion
The discovery of malicious code in the chalc package highlights the importance of regularly monitoring and updating dependencies in software projects. Users are urged to take immediate action to mitigate risks by updating or removing the affected package.
See every vulnerability recorded for chalc →
FAQ
The chalc package is an npm library used for various functionalities in JavaScript applications, including data manipulation.
The malicious code was identified by Amazon Inspector, a security tool that scans for vulnerabilities in open-source packages.
Using the compromised chalc package can lead to unauthorized access, data breaches, and potential harm to your application and its users.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software by analyzing your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.