Malicious Code Injection in suharta-poke40: A Threat to npm Users
Summary
MAL-2025-166169: Malicious code in suharta-poke40 (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
suharta-poke40 is an npm package that appears to be part of a broader scheme involving the tea.xyz token reward campaign. This package, like others in the campaign, is designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files and republish itself, posing a significant risk to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in suharta-poke40 originates from its inclusion in a malicious campaign that floods the npm registry with derivative packages. The package contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior not only compromises the security of the affected package but also pollutes the npm registry, making it difficult for developers to trust the integrity of packages. The continuous republishing of these variants can lead to confusion and potential exploitation by malicious actors.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall suharta-poke40
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 workaround, you can avoid using the suharta-poke40 package altogether and look for alternative packages that provide similar functionality without the associated risks. Always verify the source and reputation of npm packages before installation.
Conclusion
The suharta-poke40 package poses a significant threat due to its malicious code designed to manipulate package metadata and republish itself. Users are advised to uninstall the package immediately and monitor their projects for any vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for suharta-poke40 →
FAQ
suharta-poke40 is an npm package involved in a malicious campaign aimed at inflating developer reputation scores through the creation of derivative packages.
The vulnerability can lead to the modification of your project's package.json file, removal of private flags, and the introduction of potentially harmful packages into your project.
You should immediately uninstall the package using npm uninstall suharta-poke40 and check your project for any unintended changes.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.