Malicious Code Injection in safe_camel_z3n Package
Summary
MAL-2025-108328: Malicious code in safe_camel_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 safe_camel_z3n package is part of the npm ecosystem, primarily used for various JavaScript applications. It is often utilized in projects that require token reward systems, such as the tea.xyz campaign. This package has been identified as part of a larger trend where malicious packages flood the npm registry, aiming to inflate developer reputation scores through automated scripts.
Vulnerability Detail
The vulnerability in the safe_camel_z3n package stems from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can compromise the integrity of projects relying on this package. The malicious payload is designed to exploit developers by inflating reputation scores through deceptive practices.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall safe_camel_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 remove the safe_camel_z3n package from your project and replace it with a trusted alternative. To uninstall the package, use the command: npm uninstall safe_camel_z3n.
Conclusion
The safe_camel_z3n package has been identified as a vector for malicious code that can compromise npm projects. It is crucial for developers to stay informed about such vulnerabilities and take appropriate actions to secure their applications.
See every vulnerability recorded for safe_camel_z3n →
FAQ
The safe_camel_z3n package is an npm package that has been linked to a malicious campaign aimed at inflating developer reputation scores.
This vulnerability can compromise the integrity of your project by introducing malicious code that modifies your package.json and repopulates the npm registry with harmful variants.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without any signup.
If you cannot update the package, consider removing it from your project and replacing it with a trusted alternative until a secure version is available.
More information can be found in the vulnerability report on the GitHub repository for malicious packages or by consulting the npm registry.