Malicious Code Vulnerability in cedric-tea-archive Package
Summary
MAL-2025-100300: Malicious code in cedric-tea-archive (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 cedric-tea-archive package is part of the tea.xyz token reward campaign that has infiltrated the npm ecosystem. This package is designed to facilitate the generation and publication of derivative packages, which are often used to inflate developer reputation scores for token rewards. However, it has been identified as containing malicious scripts that compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the cedric-tea-archive package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which leads to the continuous republishing of these variants. The ramifications include pollution of the npm registry, potential security risks for developers using these packages, and the undermining of the npm ecosystem's trustworthiness.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cedric-tea-archive
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 cedric-tea-archive package from your project by executing the command: npm uninstall cedric-tea-archive. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The cedric-tea-archive package has been identified as containing malicious code that poses a significant risk to developers and the npm ecosystem. It is essential to take immediate action by updating or uninstalling the package to safeguard your projects.
See every vulnerability recorded for cedric-tea-archive →
FAQ
The cedric-tea-archive package is part of a token reward campaign that generates and publishes derivative npm packages.
The malicious code can modify your package.json file, remove private flags, and republish variants, leading to potential security risks.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software. You can check your application's vulnerability status using the Vulert playground without any signup.
If an immediate update is not possible, consider uninstalling the package as a temporary measure to mitigate risks.
Detailed information can be found in the vulnerability report and the package's repository on npm.