Malicious Code Detected in phx-core4 Package - Security Alert
Summary
MAL-2026-1813: Malicious code in phx-core4 (npm). Affects phx-core4 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-core4 is an npm package designed for core functionalities in web applications. It is widely used due to its modular design and ease of integration with various frameworks. However, recent findings have revealed that this package is vulnerable to malicious code injection, which can compromise the security of applications relying on it.
Vulnerability Detail
The vulnerability in phx-core4 stems from the inclusion of malicious code that can execute unauthorized actions within the application environment. This issue was identified in version 8.0.0 and poses significant risks, including data breaches, unauthorized access, and potential system compromise. The malicious code was reported by ReversingLabs, highlighting the importance of scrutinizing package dependencies for security threats.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall phx-core4
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, consider removing the phx-core4 package from your project until a secure version is confirmed. You can uninstall it using the command: npm uninstall phx-core4.
Conclusion
The discovery of malicious code in the phx-core4 package underscores the importance of maintaining secure dependencies in software projects. By updating to a patched version or removing the package, developers can protect their applications from potential threats.
See every vulnerability recorded for phx-core4 →
FAQ
The vulnerability involves malicious code that can execute unauthorized actions within applications using the phx-core4 package.
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 data breaches, unauthorized access to sensitive information, and potential system compromise, which can lead to severe operational disruptions.
Yes, it is recommended to update the phx-core4 package to the latest secure version to mitigate the risks associated with this vulnerability.
If immediate updates are not possible, consider removing the package from your project as a temporary workaround until a secure version is available.