Malicious Code Injection in complex_tern_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-100777: Malicious code in complex_tern_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 package 'complex_tern_z3n' is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that aims to exploit the npm registry by generating and publishing derivative packages with harmful scripts.
Vulnerability Detail
The vulnerability in 'complex_tern_z3n' stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior not only compromises the integrity of the affected packages but also pollutes the npm registry, potentially leading to security risks for developers who unknowingly use these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall complex_tern_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 'complex_tern_z3n' and instead look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your dependencies for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The 'complex_tern_z3n' package poses a significant security risk due to its association with a malicious npm campaign. It is essential for developers to remove this package from their projects and utilize tools like Vulert to monitor for vulnerabilities. Staying informed and proactive is key to maintaining the security of your applications.
See every vulnerability recorded for complex_tern_z3n →
FAQ
'complex_tern_z3n' is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
Using 'complex_tern_z3n' can lead to the introduction of malicious scripts in your application, compromising its security and integrity.
You should remove 'complex_tern_z3n' from your project and look for alternative packages. Additionally, monitor your dependencies for vulnerabilities.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time. Visit https://vulert.com for more information.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.