Malicious Code Injection in nasrul-poke119: A Threat to npm Users
Summary
MAL-2025-161897: Malicious code in nasrul-poke119 (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 package 'nasrul-poke119' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores, posing a significant risk to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'nasrul-poke119' originates from its association with malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also compromises the security and reliability of applications that depend on this package. Users may unknowingly install compromised versions, leading to potential data breaches or application failures.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasrul-poke119
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-poke119' package from your project by executing the following command: 'npm uninstall nasrul-poke119'. Additionally, monitor your package-lock.json file for any unauthorized changes that may indicate the presence of malicious packages.
Conclusion
The 'nasrul-poke119' package poses a significant security risk due to its malicious code that alters package metadata and repopulates the npm registry with compromised versions. Users are advised to update or remove the package and utilize tools like Vulert for ongoing vulnerability monitoring.
See every vulnerability recorded for nasrul-poke119 →
FAQ
The main risk is the potential for malicious code execution, which can compromise application security and lead to data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If you cannot update the package, it is advisable to remove it from your project to mitigate the risk of exploitation.
While specific exploits have not been detailed, the behavior of the package suggests it can lead to unauthorized access and manipulation of application data.
Regularly audit your dependencies, use tools like Vulert to monitor vulnerabilities, and avoid using packages from untrusted sources.