Malicious Code Vulnerability in nasrul-poke40: Exploitation of npm Registry
Summary
MAL-2025-161930: Malicious code in nasrul-poke40 (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-poke40 package is part of a broader ecosystem within the npm registry, which is used for managing JavaScript packages. This package, like many others, is intended to facilitate the development and deployment of applications by providing reusable code. However, it has been identified as part of a malicious campaign that aims to manipulate the npm registry for token rewards, leading to potential security risks for developers and their applications.
Vulnerability Detail
The vulnerability in nasrul-poke40 stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry, making it difficult for developers to find legitimate packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits the npm ecosystem for malicious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasrul-poke40
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 remove the nasrul-poke40 package from your project by executing the command: 'npm uninstall nasrul-poke40'. This will prevent any malicious code from executing while you seek a secure alternative package.
Conclusion
The nasrul-poke40 package poses a significant security risk due to its malicious code that manipulates the npm registry. It is essential for developers to be vigilant, regularly update their packages, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, developers can protect their applications from potential threats.
See every vulnerability recorded for nasrul-poke40 →
FAQ
nasrul-poke40 is an npm package that has been identified as part of a malicious campaign aimed at manipulating the npm registry.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
You should uninstall the package immediately and check for any updates or patches that may address the vulnerability.
You can use tools like Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software without requiring access to the code or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.