Malicious Code Injection in nasrul-poke54: A Threat to npm Ecosystem
Summary
MAL-2025-161945: Malicious code in nasrul-poke54 (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-poke54 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 mechanisms, potentially compromising the integrity of applications that depend on it.
Vulnerability Detail
The vulnerability in nasrul-poke54 arises from its involvement in a malicious campaign that floods the npm registry with derivative packages. The package contains scripts designed to automatically modify its own package.json file, removing private flags, altering version numbers, and generating random package names. This behavior not only inflates developer reputation scores for token rewards but also pollutes the npm registry, making it difficult for developers to find legitimate packages. The origin of this vulnerability is traced back to the tea.xyz token reward campaign, which has been linked to numerous malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasrul-poke54
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-poke54 package and replace it with a trusted alternative. Always verify the integrity and source of packages before including them in your project.
Conclusion
The nasrul-poke54 package poses a significant risk to the npm ecosystem due to its malicious behavior. It is essential for developers to be vigilant about the packages they use and to take immediate action to remove any compromised packages. Regular monitoring and updates are crucial to maintaining the security of your applications.
See every vulnerability recorded for nasrul-poke54 →
FAQ
nasrul-poke54 is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
If your application depends on nasrul-poke54, it may be at risk of having its integrity compromised due to the malicious behavior of the package.
You should immediately uninstall the nasrul-poke54 package and review your project's dependencies for any other potentially malicious packages.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.