Malicious Code Injection in sacred_butterfly_0xrequest Package
Summary
MAL-2025-108311: Malicious code in sacred_butterfly_0xrequest (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 sacred_butterfly_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate token rewards by generating and publishing derivative packages. However, it has been identified as containing malicious code that compromises its integrity and the security of applications that depend on it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the sacred_butterfly_0xrequest package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which leads to the pollution of the npm registry. The malicious payload is part of a broader scheme to inflate developer reputation scores for token rewards, posing significant risks to developers and users by potentially introducing insecure or harmful packages into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sacred_butterfly_0xrequest
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, avoid using the sacred_butterfly_0xrequest package and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The sacred_butterfly_0xrequest package contains malicious code that poses significant risks to developers and users. It is crucial to uninstall this package and monitor your projects for vulnerabilities to maintain security. Utilizing tools like Vulert can help in real-time monitoring of open-source vulnerabilities.
See every vulnerability recorded for sacred_butterfly_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code can modify your package.json file, remove private flags, and introduce insecure packages, compromising your application's security.
You should uninstall the sacred_butterfly_0xrequest package immediately to mitigate any potential risks.
Yes, consider using other reputable npm packages that offer similar functionality without the associated risks.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.