Malicious Code Injection in nasution-poke22: A Threat to npm Users
Summary
MAL-2025-162009: Malicious code in nasution-poke22 (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
nasution-poke22 is an npm package that appears to be part of a broader malicious campaign targeting the npm registry. This package is designed to exploit the npm ecosystem by generating and publishing derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. The malicious nature of this package poses a significant risk to users who may unknowingly install it, leading to potential security breaches and compromised environments.
Vulnerability Detail
The vulnerability in nasution-poke22 originates from its association with the tea.xyz token reward campaign, which floods the npm registry with malicious packages. The package contains scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages and applications that depend on it.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasution-poke22
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, users can implement the following command to uninstall the malicious package: npm uninstall nasution-poke22. Additionally, consider using tools like Vulert to monitor your projects for vulnerabilities in real-time. Vulert can analyze your package-lock.json file to alert you of any open-source vulnerabilities without requiring code access or installation.
Conclusion
The nasution-poke22 package poses a significant security risk due to its malicious code designed to manipulate the npm registry. Users are advised to remove the package immediately and monitor their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications by providing real-time alerts for open-source vulnerabilities.
See every vulnerability recorded for nasution-poke22 →
FAQ
nasution-poke22 is an npm package involved in a malicious campaign that aims to inflate developer reputation scores through the creation of numerous derivative packages.
The vulnerability can lead to the installation of malicious code, which may compromise your project's security and integrity, potentially allowing unauthorized access or data breaches.
You should uninstall the package immediately using the command: npm uninstall nasution-poke22, and check your project for any other affected dependencies.
Regularly update your dependencies, monitor your projects with tools like Vulert, and review security advisories to stay informed about potential vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.