Malicious Code Detected in cfx-login-modal Package
Summary
MAL-2025-16742: Malicious code in cfx-login-modal (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 cfx-login-modal package is an npm library designed for creating login modals in web applications. It provides developers with customizable components to enhance user authentication experiences. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the cfx-login-modal package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may lead to unauthorized access, data breaches, or other harmful actions against users. The issue was introduced in version 0 and affects all subsequent versions, making it critical for developers to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cfx-login-modal
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 using alternative packages for login modals that do not have known vulnerabilities. Ensure to review the security of any new package before implementation.
Conclusion
The cfx-login-modal package has been identified as containing malicious code, posing serious security risks to applications. Developers are urged to remove the package and monitor for updates or alternatives to ensure the safety of their applications and users.
See every vulnerability recorded for cfx-login-modal →
FAQ
cfx-login-modal is an npm package used to create customizable login modal components for web applications.
The malicious code can lead to unauthorized access and potential data breaches, compromising user security.
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.
Immediately remove the package from your project and look for alternative solutions or wait for a patched version.
Regularly audit your dependencies and use tools like Vulert to monitor for vulnerabilities in your open-source packages.