Malicious Code Injection in surya-ubi77-ruro: A Threat to npm Ecosystem
Summary
MAL-2025-109405: Malicious code in surya-ubi77-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 'surya-ubi77-ruro' is part of the npm ecosystem, which is widely used for JavaScript package management. It is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious packages that flood the npm registry. These packages are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names.
Vulnerability Detail
The vulnerability in 'surya-ubi77-ruro' stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to pollution of the npm registry. The package is part of a broader trend of malicious npm packages that exploit the system for personal gain, posing risks to developers and users relying on the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall surya-ubi77-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 measure, you can prevent the installation of this package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include 'surya-ubi77-ruro' in its dependencies. You can also use tools like Vulert to monitor for vulnerabilities in your project without requiring code access.
Conclusion
The 'surya-ubi77-ruro' package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate developer reputation. It is crucial for developers to remove this package and monitor their projects for vulnerabilities using tools like Vulert to maintain the integrity of their applications.
See every vulnerability recorded for surya-ubi77-ruro →
FAQ
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your project by introducing malicious code.
You can use Vulert to check your package-lock.json for vulnerabilities related to 'surya-ubi77-ruro' without needing to install any additional software.
Remove 'surya-ubi77-ruro' from your project and replace it with a legitimate package. Ensure to check for any dependencies that may also be affected.
Yes, tools like Vulert can monitor your project for vulnerabilities in real-time using your package-lock.json.
Always verify the reputation of packages before installation, regularly update dependencies, and use tools like Vulert for ongoing monitoring.