Malicious Code Injection in smart_baboon_z3n Package
Summary
MAL-2025-130263: Malicious code in smart_baboon_z3n (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 smart_baboon_z3n package is part of the npm ecosystem, often utilized in JavaScript applications for various functionalities. However, it has been identified as part of a malicious campaign that aims to exploit npm's publishing mechanisms. This package, like others in the campaign, is designed to inflate developer reputation scores through the automatic generation and publication of derivative packages with randomized names.
Vulnerability Detail
The vulnerability in the smart_baboon_z3n package originates from its association with the tea.xyz token reward campaign. It contains malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can compromise the integrity of applications relying on these packages. The malicious payload can potentially lead to unauthorized access or manipulation of the affected applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall smart_baboon_z3n
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 the smart_baboon_z3n package by using the following command to audit your npm packages: npm audit. This will help identify any vulnerable packages in your project.
Conclusion
The smart_baboon_z3n package poses a significant security risk due to its malicious code designed to manipulate npm's publishing system. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain application integrity.
See every vulnerability recorded for smart_baboon_z3n →
FAQ
The smart_baboon_z3n package is an npm package that has been identified as part of a malicious campaign aimed at exploiting npm's publishing mechanisms.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially compromising your application's integrity and security.
You should uninstall the smart_baboon_z3n package immediately and check for any dependencies that may be affected.
There is no patch available for the smart_baboon_z3n package. The best course of action is to remove it from your project.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner without any signup.