Malicious Code Injection in surya-brongkos2-ruro: A Threat to npm Ecosystem
Summary
MAL-2025-109366: Malicious code in surya-brongkos2-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-brongkos2-ruro' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is linked to a campaign that aims to exploit the npm registry by flooding it with malicious packages. The primary function of such packages is to manipulate developer reputation scores through automated publishing scripts, which can lead to significant security risks.
Vulnerability Detail
The vulnerability originates from a malicious code embedded within the 'surya-brongkos2-ruro' package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to continuously republish these variants, thereby polluting the npm registry and potentially compromising other packages. This can lead to unauthorized access, data breaches, and a general degradation of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall surya-brongkos2-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 avoid using the 'surya-brongkos2-ruro' package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The 'surya-brongkos2-ruro' package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package publishing. It is crucial for developers to be vigilant, regularly monitor their dependencies, and utilize tools like Vulert to safeguard their projects against such vulnerabilities.
See every vulnerability recorded for surya-brongkos2-ruro →
FAQ
It is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to unauthorized modifications in your project, potentially compromising security and integrity.
You should uninstall the package immediately and check for any other affected dependencies in your project.
Regularly update your dependencies, use trusted sources for packages, and utilize tools like Vulert for real-time vulnerability monitoring.
There is no patch for the 'surya-brongkos2-ruro' package itself; the best course of action is to remove it from your project.