Malicious Code Vulnerability in phx-core2 Package
Summary
MAL-2026-1811: Malicious code in phx-core2 (npm). Affects phx-core2 versions 8.0.0. 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
phx-core2 is an npm package designed for core functionalities in various applications. It is widely used in the JavaScript ecosystem for its modular architecture and ease of integration. However, it has been identified to contain malicious code that can compromise the security of applications utilizing this package.
Vulnerability Detail
The vulnerability in the phx-core2 package stems from the inclusion of malicious code that can execute unauthorized actions within an application. This code can lead to data breaches, unauthorized access, and potential system compromise. The malicious behavior was identified in version 8.0.0 of the package, which was reported by ReversingLabs. Users of this package should be aware of the risks associated with its use and take immediate action to mitigate potential threats.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall phx-core2
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 phx-core2 package from your project until a secure version is available. You can do this by running: npm uninstall phx-core2. This will prevent any potential exploitation of the vulnerability until a fix is implemented.
Conclusion
The phx-core2 package has been identified to contain malicious code that poses significant security risks. Users are strongly encouraged to update to a patched version or remove the package from their projects until a fix is available. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for phx-core2 →
FAQ
phx-core2 is an npm package that provides core functionalities for JavaScript applications, enabling modular development and integration.
The malicious code can execute unauthorized actions, potentially leading to data breaches and system compromises.
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.
Yes, users are advised to update to the latest version of the phx-core2 package to mitigate the vulnerability.
As a temporary measure, consider uninstalling the phx-core2 package to prevent any exploitation until a secure version is available.