Critical Malicious Code Vulnerability in @louisle2/cortex-js Package
Summary
MAL-2025-190817: Malicious code in @louisle2/cortex-js (npm). Affects @louisle2/cortex-js versions 0.1.6. 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 @louisle2/cortex-js package is an npm library designed for JavaScript applications, providing various functionalities that enhance the development process. However, this package has been compromised, embedding malicious code that poses significant security risks to any system utilizing it. Users of this package should be aware of its potential to expose sensitive information and compromise system integrity.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the @louisle2/cortex-js package. This code can fully compromise any computer where the package is installed, allowing unauthorized access to secrets and keys stored on the system. The malicious code was identified by the GitHub Security Advisory (GHSA) and is classified under CWE-506, indicating that it contains code that appears to be malicious in nature. The ramifications of this vulnerability are severe, as it can lead to data breaches and unauthorized control over affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @louisle2/cortex-js
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 workaround, if you need to maintain functionality while addressing the vulnerability, consider using an alternative package that offers similar features without the associated risks. Always ensure to review the security status of any package before installation.
Conclusion
The @louisle2/cortex-js package has been identified as containing malicious code that compromises system security. Immediate action is required to uninstall the package and secure any sensitive information. Users are encouraged to explore alternative packages and utilize tools like Vulert for ongoing vulnerability monitoring.
See every vulnerability recorded for @louisle2/cortex-js →
FAQ
It is an npm library used in JavaScript applications, but it has been compromised with malicious code.
If you have installed the @louisle2/cortex-js package, your system may be compromised. It is recommended to uninstall it immediately.
Rotate all secrets and keys stored on the affected computer from a different, secure machine to prevent unauthorized access.
No patch is available for the @louisle2/cortex-js package. The only solution is to uninstall the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can also check your application for vulnerabilities using the Vulert playground without any signup.