Malicious Code Injection in nasution-poke8: A Threat to npm Users
Summary
MAL-2025-162043: Malicious code in nasution-poke8 (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 nasution-poke8 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and distribution of JavaScript applications. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities to inflate developer reputation scores through the creation of derivative packages with randomized names.
Vulnerability Detail
The vulnerability in nasution-poke8 stems from its involvement in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of these variants, which pollutes the npm registry and can compromise the integrity of the ecosystem. The malicious code is designed to automate the creation and publication of these packages, making it difficult for developers to identify and mitigate the threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasution-poke8
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 avoid using the nasution-poke8 package and consider alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your npm packages for vulnerabilities using tools like npm audit.
Conclusion
The nasution-poke8 package poses a significant risk due to its malicious behavior, which can compromise the integrity of the npm ecosystem. It is crucial for developers to remain vigilant, remove affected packages, and utilize tools to monitor for vulnerabilities.
See every vulnerability recorded for nasution-poke8 →
FAQ
nasution-poke8 is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores.
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your project's dependencies, potentially introducing malicious code.
You should remove the nasution-poke8 package from your project immediately and monitor for any updates or patches that may address the issue.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
Yes, tools like npm audit and Vulert can help you identify and manage vulnerabilities in your npm packages.