Malicious Code Injection in nasution-poke26: A Threat to npm Users
Summary
MAL-2025-162013: Malicious code in nasution-poke26 (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
nasution-poke26 is an npm package that appears to be part of a larger scheme involving the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores in exchange for token rewards. Its functionality is compromised due to the presence of malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in nasution-poke26 stems from the inclusion of malicious code that modifies the package.json file by removing private flags and altering version numbers. This code generates random package names, often themed around Indonesian culture, and continuously republishes these variants to the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which aims to exploit npm's publishing system for malicious purposes. The ramifications include potential pollution of the npm registry and risks to developers who may unknowingly install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasution-poke26
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 avoid using the nasution-poke26 package until a fixed version is released. Additionally, consider using npm audit to identify and address vulnerabilities in your project dependencies.
Conclusion
The nasution-poke26 package poses a significant risk due to its malicious code that alters package metadata and repopulates the npm registry with compromised packages. Developers should take immediate action to remove this package and monitor their projects for vulnerabilities.
See every vulnerability recorded for nasution-poke26 →
FAQ
nasution-poke26 is an npm package involved in a token reward campaign that automates the generation of derivative packages.
The malicious code modifies your package.json file, potentially leading to the installation of unwanted or harmful packages.
If you have installed nasution-poke26, it is advisable to remove it from your project and check for any changes made to your package.json file.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.