Malicious Code Injection in nasution-poke37: A Threat to npm Users
Summary
MAL-2025-162025: Malicious code in nasution-poke37 (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 nasution-poke37 package is part of a broader campaign targeting npm users, designed to exploit the npm registry for malicious purposes. This package is associated with the tea.xyz token reward initiative, which has been linked to a series of malicious packages that flood the npm ecosystem. These packages often contain scripts that automatically generate and publish derivative packages, compromising the integrity of the npm registry and potentially affecting developers' reputations.
Vulnerability Detail
The vulnerability in nasution-poke37 arises from its malicious payload, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior not only misleads developers but also poses a risk of reputation damage and potential security breaches as these packages may contain further malicious code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasution-poke37
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 measure, you can avoid using the nasution-poke37 package and any other packages that may be part of the tea.xyz token reward campaign. Regularly audit your package.json and package-lock.json files to identify and remove any suspicious packages.
Conclusion
The nasution-poke37 package poses a significant threat to npm users due to its malicious behavior of modifying package files and republishing variants. It is crucial to take immediate action by removing this package and monitoring your dependencies for any vulnerabilities. Utilizing tools like Vulert can help you stay informed and secure.
See every vulnerability recorded for nasution-poke37 →
FAQ
nasution-poke37 is an npm package that has been identified as part of a malicious campaign to exploit the npm registry for token rewards.
The vulnerability can lead to the injection of malicious code, compromising your project's integrity and potentially damaging your reputation as a developer.
You should uninstall the package immediately using 'npm uninstall nasution-poke37' and audit your project for any other suspicious 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 signing up.