Malicious Code Injection in nasrul-poke38: A Threat to npm Ecosystem
Summary
MAL-2025-161927: Malicious code in nasrul-poke38 (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 nasrul-poke38 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 aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. This behavior not only compromises the integrity of the npm registry but also poses a significant risk to developers who may unknowingly use these tainted packages.
Vulnerability Detail
The vulnerability in nasrul-poke38 originates from its involvement in a malicious campaign linked to the tea.xyz token reward system. The package contains scripts designed to automatically modify its own package.json file by removing private flags, altering version numbers, and generating random package names. This results in the continuous republishing of these variants, which pollutes the npm registry and can lead to security risks for developers who may inadvertently install these compromised packages. The malicious payload can also lead to unauthorized access or manipulation of projects 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-poke38
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, avoid using the nasrul-poke38 package and consider using alternative packages that provide similar functionality without the associated risks. Always review the packages you include in your project for any known vulnerabilities.
Conclusion
The nasrul-poke38 package poses a significant threat to the npm ecosystem due to its malicious behavior aimed at inflating developer reputation scores. It is crucial for developers to be vigilant about the packages they use and to take immediate action to remove any compromised packages from their projects. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for nasrul-poke38 →
FAQ
nasrul-poke38 is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the installation of compromised packages that may contain malicious code, potentially compromising your project's security and integrity.
You should uninstall the nasrul-poke38 package immediately and review your project's dependencies for any other potentially compromised packages.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities in your software.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.