Malicious Code Injection in philosophical_elk_z3n Package
Summary
MAL-2025-95888: Malicious code in philosophical_elk_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 philosophical_elk_z3n package is part of the npm ecosystem, which is widely used for JavaScript development. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary functionality of this package is to serve as a token reward mechanism, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the philosophical_elk_z3n package. This code is designed to automatically modify the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to inflate developer reputation scores and pollute the npm registry with derivative packages. The ramifications of this vulnerability include potential exposure of sensitive information, unauthorized access to project dependencies, and overall degradation of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall philosophical_elk_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 malicious scripts from executing by ensuring that your npm configuration does not allow automatic publishing or by using a package-lock.json file to lock down your dependencies. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities.
Conclusion
The philosophical_elk_z3n package contains malicious code that poses a significant risk to projects using it. It is crucial to remove this package and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help in maintaining the security of your software.
See every vulnerability recorded for philosophical_elk_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, which has been compromised to include malicious code.
The malicious code can modify your package.json file, potentially exposing sensitive information and degrading the integrity of your project.
You should uninstall the philosophical_elk_z3n package immediately and monitor your project for any unusual activity.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring any signup.
Regularly monitor your dependencies using tools like Vulert, and ensure to keep your packages updated to the latest versions.