Malicious Code Injection in brunodias Package: npm Vulnerability Overview
Summary
MAL-2025-170991: Malicious code in brunodias (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 brunodias package is part of the npm ecosystem, primarily used for various JavaScript applications. It has been identified as part of a malicious campaign that aims to exploit npm's publishing features. The package is designed to automatically generate and publish derivative packages with randomized names, which can inflate developer reputation scores for token rewards in the tea.xyz protocol. This behavior poses significant risks to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability in the brunodias package originates from its involvement in the tea.xyz token reward campaign. It contains malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This leads to the continuous republishing of variants that pollute the npm registry, potentially compromising the integrity of the ecosystem and affecting developers who may unknowingly use these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall brunodias
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 brunodias package from your project by executing 'npm uninstall brunodias'. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The brunodias package has been identified as a malicious entity within the npm ecosystem, posing significant risks to developers and users. It is crucial to take immediate action by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities in your projects.
See every vulnerability recorded for brunodias →
FAQ
The brunodias package is an npm package that has been identified as part of a malicious campaign aimed at exploiting npm's publishing features.
The vulnerability can lead to the pollution of the npm registry with malicious packages, potentially compromising the security and integrity of your project.
If you have installed brunodias, it is recommended to uninstall it immediately and check for any updates or patches for your other dependencies.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time, alerting you to any issues 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 needing to sign up.