Malicious Code Injection in thoughtless_elephant_z3n Package
Summary
MAL-2025-91024: Malicious code in thoughtless_elephant_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 thoughtless_elephant_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to generate and publish derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. However, it has been identified as containing malicious code that modifies package metadata and repackages itself to pollute the npm registry.
Vulnerability Detail
The vulnerability in the thoughtless_elephant_z3n package stems from its malicious payload, which alters the package.json file by removing private flags and changing version numbers. This allows the package to continuously republish variants with Indonesian-themed names, contributing to npm registry pollution. The origin of this issue is linked to the broader trend of malicious packages flooding the npm ecosystem, particularly those associated with token reward schemes. The ramifications include potential security risks for developers who unknowingly use this package, as it can lead to unauthorized access or manipulation of their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall thoughtless_elephant_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 avoid using the thoughtless_elephant_z3n package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before installation.
Conclusion
The thoughtless_elephant_z3n package poses a significant security risk due to its malicious code that modifies package metadata and repackages itself. It is crucial for developers to remove this package from their projects and monitor for vulnerabilities using tools like Vulert to ensure the security of their applications.
See every vulnerability recorded for thoughtless_elephant_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to unauthorized modifications of your project's package.json file and potential security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
You should uninstall the thoughtless_elephant_z3n package immediately using the command: npm uninstall thoughtless_elephant_z3n.
Yes, look for other npm packages that provide similar functionality but are verified and free from malicious code.