Malicious Code Injection in nasrul-poke101: A Threat to npm Ecosystem
Summary
MAL-2025-161878: Malicious code in nasrul-poke101 (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
nasrul-poke101 is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is designed to exploit the npm ecosystem by generating and publishing derivative packages with randomized names. The primary functionality of this package is to inflate developer reputation scores through the tea.xyz token reward campaign, which has led to the proliferation of harmful scripts within the npm registry.
Vulnerability Detail
The vulnerability in nasrul-poke101 originates from its association with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The malicious code within this package modifies the package.json file to remove private flags, alters version numbers, and generates random package names, thereby continuously republishing variants to pollute the npm registry. This behavior can lead to significant security risks, including unauthorized access to sensitive data and the potential compromise of other packages within the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasrul-poke101
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 nasrul-poke101 package and any other packages that may have been published as part of the malicious campaign. Monitor your package-lock.json file for any unauthorized changes and consider using tools like Vulert to keep track of vulnerabilities in your dependencies.
Conclusion
The nasrul-poke101 package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package metadata and inflate developer reputation scores. It is crucial for developers to be vigilant, remove any affected packages, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for nasrul-poke101 →
FAQ
nasrul-poke101 is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the tea.xyz token reward system.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially exposing your project to security risks and compromising the integrity of your dependencies.
You should immediately uninstall the nasrul-poke101 package using the command 'npm uninstall nasrul-poke101' and review your project for any other potentially malicious packages.
Yes, regularly update your dependencies, monitor your package-lock.json file for unauthorized changes, and use tools like Vulert to alert you to open-source vulnerabilities in real-time.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check if your application is affected by vulnerabilities without requiring access to the code or installation.