Malicious Code Injection in sabua-muyaig-bafuma: A Threat to npm Users
Summary
MAL-2025-165454: Malicious code in sabua-muyaig-bafuma (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 'sabua-muyaig-bafuma' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package, like many others in this campaign, is designed to manipulate the npm registry by generating and publishing derivative packages with randomized names. Its primary function is to inflate developer reputation scores for token rewards, but it poses significant risks due to its malicious behavior.
Vulnerability Detail
The vulnerability in 'sabua-muyaig-bafuma' originates from its inclusion in a campaign that floods the npm registry with malicious packages. The package contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the pollution of the npm registry, potentially compromising the integrity of other packages and harming developers' reputations.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sabua-muyaig-bafuma
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 prevent the installation of this package by using npm's package-lock.json to monitor your dependencies. Ensure that your project does not include 'sabua-muyaig-bafuma' in its dependencies. You can also use tools like Vulert to monitor your project for vulnerabilities in real-time.
Conclusion
The 'sabua-muyaig-bafuma' package poses a significant threat to npm users due to its malicious behavior aimed at manipulating the npm registry. It is crucial to remove this package from your project and monitor your dependencies for vulnerabilities using tools like Vulert to maintain the integrity of your software.
See every vulnerability recorded for sabua-muyaig-bafuma →
FAQ
'sabua-muyaig-bafuma' is an npm package associated with a malicious campaign that aims to inflate developer reputation scores through the creation of derivative packages.
The vulnerability can lead to the pollution of the npm registry, compromising the integrity of your project's dependencies and potentially harming your reputation as a developer.
You should uninstall 'sabua-muyaig-bafuma' immediately using 'npm uninstall sabua-muyaig-bafuma' and ensure your project is not affected by similar packages.
You can use Vulert to monitor your project for open-source vulnerabilities in real-time. It requires only your package-lock.json file to provide alerts.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.