Malicious Code Injection in zain-tempe2-breki: A Threat to npm Ecosystem
Summary
MAL-2025-76546: Malicious code in zain-tempe2-breki (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 zain-tempe2-breki is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publishing of derivative packages, which can inflate developer reputation scores. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability stems from the presence of malicious scripts within the zain-tempe2-breki package. These scripts, such as auto.js and autopublish.js, modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially affecting other developers and users relying on legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall zain-tempe2-breki
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 malicious package by using npm's package-lock.json to monitor dependencies. Ensure that you do not install any packages that are not explicitly listed in your package-lock.json file.
Conclusion
The zain-tempe2-breki package poses a significant threat due to its malicious code that alters package configurations and pollutes the npm registry. It is essential for developers to take immediate action to update or remove this package and utilize tools like Vulert for ongoing vulnerability monitoring.
See every vulnerability recorded for zain-tempe2-breki →
FAQ
zain-tempe2-breki is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json file, potentially leading to the installation of unwanted packages and polluting the npm registry.
If you have installed zain-tempe2-breki, it is crucial to update or remove the package immediately to mitigate any risks.
You can use Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.