Malicious Code Detected in energycap-angular2 Package
Summary
MAL-2025-19652: Malicious code in energycap-angular2 (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 energycap-angular2 package is a JavaScript library designed for building Angular applications that interface with EnergyCap services. It provides developers with tools to manage energy data efficiently. However, this package has been found to contain malicious code, posing a significant risk to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the energycap-angular2 package. This code can potentially compromise the security of applications that depend on it, leading to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall energycap-angular2
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, consider removing the energycap-angular2 package from your project until a secure version is released. You can do this by running: npm uninstall energycap-angular2.
Conclusion
The energycap-angular2 package has been identified as containing malicious code, which poses a serious risk to applications using it. It is crucial to update or remove the package to safeguard your application from potential threats.
See every vulnerability recorded for energycap-angular2 →
FAQ
energycap-angular2 is a JavaScript library for building Angular applications that connect to EnergyCap services.
The specific nature of the malicious code has not been disclosed, but it poses risks such as unauthorized access and data breaches.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application using the Vulert playground at Vulert Scanner.
It is recommended to check the package repository for any updates or patches that address this vulnerability.
If an immediate update is not possible, consider removing the package from your project as a temporary measure.