Malicious Code Injection in nasrul-poke14: A Threat to npm Users
Summary
MAL-2025-161901: Malicious code in nasrul-poke14 (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-poke14 is part of a broader campaign targeting npm users, leveraging the tea.xyz token reward system. It is designed to manipulate npm's package registry by creating and publishing numerous derivative packages with altered names and metadata. This behavior not only undermines the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these compromised packages.
Vulnerability Detail
The vulnerability in nasrul-poke14 stems from its malicious code that modifies the package.json file to remove private flags and change version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to inflate developer reputation scores for token rewards. This behavior can lead to the pollution of the npm registry, making it difficult for developers to find legitimate packages and potentially introducing security risks into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasrul-poke14
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 workaround, avoid using the nasrul-poke14 package and monitor your project dependencies regularly. You can use tools like Vulert to check for vulnerabilities in your package-lock.json file. For real-time monitoring, consider using the Vulert playground at https://vulert.com/scanner, which allows you to check if your application is affected without requiring any signup.
Conclusion
The nasrul-poke14 package poses a significant risk to npm users due to its malicious code designed to manipulate the npm registry. It is crucial to remove this package from your projects and utilize tools like Vulert for ongoing monitoring of vulnerabilities. Staying informed and proactive can help safeguard your applications from such threats.
See every vulnerability recorded for nasrul-poke14 →
FAQ
nasrul-poke14 is an npm package that has been identified as malicious, part of a campaign to manipulate the npm registry for token rewards.
The malicious code modifies your package.json file, potentially leading to the inclusion of harmful packages and compromising the integrity of your project.
You should uninstall the package immediately using the command npm uninstall nasrul-poke14 to prevent any potential risks.
While many packages in the npm registry are trustworthy, it is essential to regularly audit your dependencies and use tools like Vulert to monitor for vulnerabilities.
You can use Vulert, which monitors your package-lock.json for vulnerabilities in real-time, or check your application using the Vulert playground at Vulert Scanner.