Malicious Code Injection in element-plus-vite-cli: A Security Threat
Summary
MAL-2026-16331: Malicious code in element-plus-vite-cli (npm). Affects element-plus-vite-cli versions 2.9.3 – 2.9.5. 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
element-plus-vite-cli is a command-line interface tool designed for building applications using Vue 3 and Element Plus. It streamlines the development process by providing essential functionalities for project setup and management. However, recent findings have revealed that this package is susceptible to a significant security vulnerability that allows for the execution of malicious code, potentially compromising user systems.
Vulnerability Detail
The vulnerability originates from the package invoking tooling-bootstrap.cjs, which searches for specific sentinel files characteristic of fintech applications. Upon finding a match, it concatenates and decodes embedded base64 chunks into a malicious MJS agent. This agent is then executed, allowing attackers to perform various operations such as executing arbitrary commands, exfiltrating files, and manipulating system processes. The agent communicates with a command-and-control server, posing severe risks to user data and system integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall element-plus-vite-cli
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, users can avoid using the element-plus-vite-cli package until a patch is confirmed. Additionally, ensure that your environment variables do not allow insecure TLS connections, which could further expose your system to attacks.
Conclusion
The element-plus-vite-cli package has been identified as having a critical vulnerability that allows for the execution of malicious code. Users are strongly encouraged to update to the latest version to protect their systems. Utilizing tools like Vulert can help monitor and identify vulnerabilities in real-time, ensuring better security practices.
See every vulnerability recorded for element-plus-vite-cli →
FAQ
The vulnerability involves the execution of malicious code that can compromise user systems by allowing unauthorized access and control.
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.
The risks include unauthorized command execution, data exfiltration, and potential system compromise, which can lead to severe security breaches.
Yes, users are advised to update to the latest version of element-plus-vite-cli to mitigate the risks associated with this vulnerability.
If an immediate update is not possible, refrain from using the package and ensure your environment is secured against potential attacks.