Malicious Code Injection in beautiful_unicorn-apptea: npm Package Vulnerability
Summary
MAL-2025-99882: Malicious code in beautiful_unicorn-apptea (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 beautiful_unicorn-apptea package is part of the tea.xyz token reward campaign, which has been known to flood the npm ecosystem with malicious packages. These packages are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior not only affects the integrity of the npm registry but also poses significant risks to developers and users relying on these packages.
Vulnerability Detail
The vulnerability in beautiful_unicorn-apptea originates from its association with a malicious campaign that employs autopublish scripts to modify package.json files. This includes removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of variants. The ramifications of this vulnerability include the pollution of the npm registry, potential security risks for applications using these packages, and the undermining of developer trust in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall beautiful_unicorn-apptea
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 avoid using the beautiful_unicorn-apptea package and consider alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project's dependencies using tools like Vulert, which alerts you to vulnerabilities in real-time.
Conclusion
The beautiful_unicorn-apptea package poses a significant security risk due to its malicious behavior associated with the tea.xyz token reward campaign. It is essential for developers to remove this package from their projects and utilize tools like Vulert to monitor for vulnerabilities in their dependencies.
See every vulnerability recorded for beautiful_unicorn-apptea →
FAQ
beautiful_unicorn-apptea is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through automated publishing of derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially introducing malicious code into your application and compromising its security.
If you have installed beautiful_unicorn-apptea, it is crucial to remove it from your project and monitor for any updates or patches that may address the vulnerability.
You can use Vulert to monitor your project's dependencies in real-time. It analyzes your package-lock.json file to alert you of any open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.