Malicious Code Injection in nasrul-poke62: A Threat to npm Ecosystem
Summary
MAL-2025-161954: Malicious code in nasrul-poke62 (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
nasrul-poke62 is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package, like others in the campaign, is designed to manipulate the npm ecosystem by generating and publishing numerous derivative packages with altered metadata. The primary function of these packages is to exploit the npm registry for token rewards associated with the tea.xyz protocol, thereby inflating developer reputation scores.
Vulnerability Detail
The vulnerability in nasrul-poke62 stems from its malicious code, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to automate the creation of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasrul-poke62
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 prevent the installation of the nasrul-poke62 package by adding it to your project's .npmrc file with the following line: package-lock=false. This will prevent npm from installing any packages that are not explicitly defined in your package.json.
Conclusion
The nasrul-poke62 package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate the registry. It is crucial for developers to uninstall this package and monitor their projects for vulnerabilities to maintain security and integrity.
See every vulnerability recorded for nasrul-poke62 →
FAQ
nasrul-poke62 is an npm package that has been identified as part of a malicious campaign aimed at manipulating the npm registry for token rewards.
The vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your project's dependencies, potentially introducing security risks.
You should uninstall the nasrul-poke62 package immediately using the command: npm uninstall nasrul-poke62.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can check if your application is affected by visiting the Vulert playground at Vulert Scanner.
Regularly updating your dependencies and using tools like Vulert can help you monitor for vulnerabilities and maintain the security of your project.