Malicious Code Injection in galih-lupis30-ruro: A Threat to npm Ecosystem
Summary
MAL-2025-103036: Malicious code in galih-lupis30-ruro (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 'galih-lupis30-ruro' 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 linked to a series of malicious activities aimed at inflating developer reputation scores through the automatic generation and publication of derivative packages. The vulnerability stems from the package's design, which allows for the modification of critical files and the continuous republishing of variants, leading to potential pollution of the npm registry.
Vulnerability Detail
The vulnerability in 'galih-lupis30-ruro' originates from its malicious payload that alters the package.json file by removing private flags and changing version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these malicious packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall galih-lupis30-ruro
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 monitor your project's dependencies using tools like Vulert. By utilizing the Vulert playground at https://vulert.com/scanner, you can check if your application is affected by this vulnerability without requiring any signup. This allows you to stay informed about potential threats in your open-source dependencies.
Conclusion
The 'galih-lupis30-ruro' package poses a significant threat to the npm ecosystem due to its malicious code that alters package metadata and repopulates the registry with potentially harmful variants. It is crucial for developers to remain vigilant, uninstall any affected packages, and utilize monitoring tools like Vulert to safeguard their applications.
See every vulnerability recorded for galih-lupis30-ruro →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, which has been identified as containing malicious code.
The vulnerability can lead to the introduction of malicious code into your application, compromising its security and integrity.
You should uninstall the package immediately using the command 'npm uninstall galih-lupis30-ruro' and review your project's dependencies for any other malicious packages.
Regularly update your dependencies, use trusted packages, and monitor your project with tools like Vulert to stay informed about vulnerabilities.
You can refer to the vulnerability details provided by sources like Amazon Inspector or check the Vulert platform for real-time alerts.