Malicious Code Injection in narai-buntal-butya: A Threat to npm Ecosystem
Summary
MAL-2025-161874: Malicious code in narai-buntal-butya (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 'narai-buntal-butya' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious activities aimed at inflating developer reputation scores. The package's functionality is compromised by malicious scripts that manipulate its metadata and behavior.
Vulnerability Detail
The vulnerability in 'narai-buntal-butya' stems from its association with a malicious campaign that employs scripts to modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only affects the integrity of the npm ecosystem but also poses a risk to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall narai-buntal-butya
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 'narai-buntal-butya' package from your project by executing: 'npm uninstall narai-buntal-butya'. This will prevent any malicious code from executing in your environment until a patched version is available.
Conclusion
The 'narai-buntal-butya' package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to stay informed about such vulnerabilities and take proactive measures to secure their applications.
See every vulnerability recorded for narai-buntal-butya →
FAQ
The vulnerability involves malicious scripts that alter package metadata and republish variants to the npm registry, compromising the integrity of the package.
You can use Vulert, which monitors open-source vulnerabilities in your software. By analyzing your package-lock.json, Vulert can alert you in real-time. You can also check your application using the Vulert playground at Vulert Scanner.
Using the compromised package can lead to security vulnerabilities in your application, including unauthorized access and data manipulation.
Regularly updating your packages, using vulnerability scanning tools like Vulert, and reviewing package dependencies can help prevent such vulnerabilities.
If an immediate update is not possible, consider uninstalling the package as a temporary measure to mitigate risks.