Malicious Code Injection in charliejohnson Package: npm Vulnerability Overview
Summary
MAL-2025-171022: Malicious code in charliejohnson (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 charliejohnson package is part of the npm ecosystem, primarily used for JavaScript development. It is often utilized in various applications for its functionalities related to package management and dependency handling. However, this package has been identified as part of a malicious campaign that exploits npm's publishing capabilities, leading to significant security concerns.
Vulnerability Detail
The vulnerability stems from the charliejohnson package being involved in a malicious scheme linked to the tea.xyz token reward campaign. This package contains scripts that automatically generate and publish derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and continuously republishing variants, which pollutes the npm registry and poses risks of dependency confusion and supply chain attacks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall charliejohnson
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 remove the charliejohnson package from your project if it is not essential. Use the command 'npm uninstall charliejohnson' to eliminate the potential risk until a secure version is available.
Conclusion
The charliejohnson package has been identified as a vector for malicious activity within the npm ecosystem. It is essential for developers to be aware of this vulnerability, take necessary actions to update or remove the package, and utilize tools like Vulert for ongoing monitoring of open-source vulnerabilities.
See every vulnerability recorded for charliejohnson →
FAQ
The charliejohnson package is an npm package used in JavaScript applications, but it has been identified as part of a malicious campaign.
The vulnerability can lead to dependency confusion and potential supply chain attacks, compromising the security of your application.
You should update the package to the latest version or remove it from your project to mitigate risks.
Yes, you can use Vulert to monitor and alert in real-time for open-source vulnerabilities in your software without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.