Malicious Code Injection in front_dragon_z3n: npm Package Vulnerability
Summary
MAL-2025-102945: Malicious code in front_dragon_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 front_dragon_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit developers by flooding the npm registry with derivative packages. Its primary function is to facilitate the automatic generation and publication of packages, which can lead to reputation inflation for token rewards.
Vulnerability Detail
The vulnerability stems from the malicious code embedded within the front_dragon_z3n package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, primarily themed around Indonesian culture. The malicious payload continuously republishes these variants, polluting the npm registry and potentially compromising the integrity of other packages and applications that depend on it.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall front_dragon_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 this malicious package by using the following command to audit your dependencies: npm audit. This will help identify any vulnerabilities in your project and suggest necessary actions.
Conclusion
The front_dragon_z3n package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial to remove this package from your projects and monitor your dependencies for vulnerabilities to maintain the integrity of your applications.
See every vulnerability recorded for front_dragon_z3n →
FAQ
front_dragon_z3n is an npm package that has been identified as part of a malicious campaign to exploit developers by flooding the npm registry with derivative packages.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to reputation inflation and compromise the integrity of your dependencies.
You should uninstall the package immediately using npm uninstall front_dragon_z3n and check your package-lock.json for any lingering references.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities without any signup at the Vulert playground.
Regularly audit your dependencies using npm audit, keep your packages updated, and consider using tools like Vulert for real-time monitoring of vulnerabilities.