Malicious Code Detected in elrctron Package - Security Alert
Summary
MAL-2025-19541: Malicious code in elrctron (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 elrctron package is a Node.js library that facilitates the development of desktop applications using web technologies. It is designed to provide a seamless integration of web-based functionalities into native applications. However, the package has been identified to contain malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the elrctron package stems from the inclusion of malicious code that can compromise the security of applications utilizing this package. This malicious code can lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall elrctron
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 measure, users can remove the elrctron package from their project until a secure version is released. This can be done by executing the following command: npm uninstall elrctron.
Conclusion
The elrctron package has been found to contain malicious code, posing serious security risks to applications that utilize it. Users are advised to update or remove the package to mitigate these risks. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for elrctron →
FAQ
elrctron is a Node.js library that allows developers to create desktop applications using web technologies.
The malicious code was identified through security assessments conducted by Amazon Inspector.
Using the compromised package can lead to unauthorized access, data breaches, and potential harm to the affected systems.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.