Malicious Code Injection in suharta-poke2: A Threat to npm Ecosystem
Summary
MAL-2025-166146: Malicious code in suharta-poke2 (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-poke2 is an npm package that is part of the tea.xyz token reward campaign. This package, like others in the campaign, is designed to inflate developer reputation scores by generating and publishing numerous derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files and republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in suharta-poke2 originates from its malicious payload, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants. This behavior not only compromises the integrity of the npm registry but also poses a risk to developers who may unknowingly use these tainted packages, leading to potential security breaches and loss of trust in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall suharta-poke2
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, avoid using the suharta-poke2 package and consider using alternative packages that provide similar functionality without the associated risks. Always validate the source of your npm packages before installation.
Conclusion
The suharta-poke2 package poses a significant risk due to its malicious code that alters package files and repopulates the npm registry with compromised packages. It is crucial for developers to be vigilant, remove affected packages, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for suharta-poke2 →
FAQ
suharta-poke2 is an npm package involved in a token reward campaign that generates and publishes numerous derivative packages.
The vulnerability can lead to the introduction of malicious code into your project, compromising its security and integrity.
You should uninstall the package immediately using 'npm uninstall suharta-poke2' and review your project's dependencies for any other potentially malicious packages.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities. You can also check your application against known vulnerabilities using the Vulert playground.
Regularly audit your dependencies, use trusted sources for packages, and consider implementing automated tools that can alert you to vulnerabilities as they arise.