Malicious Code Injection in nasrul-poke1 Package - npm Vulnerability
Summary
MAL-2025-161875: Malicious code in nasrul-poke1 (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-poke1 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 deployment of applications by providing reusable code components. However, it has been identified as part of a malicious campaign that aims to manipulate the npm registry and inflate developer reputation scores through the automatic generation and publication of derivative packages.
Vulnerability Detail
The vulnerability in the nasrul-poke1 package stems from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to pollute the npm registry and could lead to the unintentional use of compromised packages by developers, potentially introducing security risks into their applications. The malicious payload is executed through autopublish scripts that continuously republish variants of the package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasrul-poke1
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, consider removing the nasrul-poke1 package from your project if it is not essential. You can do this by executing the command: npm uninstall nasrul-poke1. Additionally, monitor your package-lock.json file for any unauthorized changes.
Conclusion
The nasrul-poke1 package has been identified as part of a malicious campaign that poses significant security risks to applications using it. Developers are advised to update or remove the package to safeguard their projects from potential threats. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for nasrul-poke1 →
FAQ
The nasrul-poke1 package is a JavaScript package available on npm, primarily used for application development.
If your application uses the nasrul-poke1 package, it may inadvertently include malicious code that can compromise security and functionality.
You should update the package to the latest version or remove it from your project to avoid potential security risks.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.