Malicious Code Injection in nasrul-poke61: A Threat to npm Ecosystem
Summary
MAL-2025-161953: Malicious code in nasrul-poke61 (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 package nasrul-poke61 is part of a series of malicious packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by generating and publishing numerous derivative packages with altered names and metadata. The primary function of these packages is to inflate developer reputation scores for token rewards, posing a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in nasrul-poke61 stems from its malicious payload, which 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, ultimately polluting the npm registry. The origin of this vulnerability is linked to the broader trend of malicious packages that exploit the npm ecosystem for fraudulent gains, potentially compromising the security and reliability of applications that depend on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasrul-poke61
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, you can avoid using the nasrul-poke61 package and replace it with a legitimate alternative that serves the same purpose. Always verify the integrity of packages before installation.
Conclusion
The nasrul-poke61 package poses a significant threat to the npm ecosystem due to its malicious behavior aimed at manipulating the registry. It is crucial for developers to remain vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities in real-time.
See every vulnerability recorded for nasrul-poke61 →
FAQ
nasrul-poke61 is a malicious npm package that is part of a campaign to inflate developer reputation scores through the creation of numerous derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially introducing insecure or malicious code into your application, which can compromise its security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected by this vulnerability.
You should uninstall the nasrul-poke61 package immediately using the command 'npm uninstall nasrul-poke61' and review your other dependencies for potential vulnerabilities.
No, there are no patches available for nasrul-poke61 as it is a malicious package. The best course of action is to remove it from your project.