Malicious Code Injection in budisurya Package - npm Vulnerability
Summary
MAL-2025-170992: Malicious code in budisurya (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 budisurya package is part of the npm ecosystem, primarily used for various JavaScript applications. It has been identified as part of a token reward campaign that exploits the npm registry by flooding it with malicious packages. These packages are designed to inflate developer reputation scores through automated publishing of derivative packages, which can lead to significant security risks.
Vulnerability Detail
The vulnerability originates from the budisurya package, which contains malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names and continuously republishes variants, polluting the npm registry. This behavior can lead to unauthorized access, data leakage, and a compromised development environment, as developers may unknowingly integrate these malicious packages into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall budisurya
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 remove the budisurya package from your project by executing the following command: npm uninstall budisurya. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The budisurya package poses a significant security risk due to its malicious code that modifies project files and repackages itself. It is crucial to take immediate action by updating or uninstalling the package and monitoring your projects for vulnerabilities using tools like Vulert.
See every vulnerability recorded for budisurya →
FAQ
The budisurya package 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 functionality.
You should uninstall the budisurya package immediately and check for any other affected packages in your project.
You can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.