Malicious Code Vulnerability in libjs-cqs Package
Summary
MAL-2026-1770: Malicious code in libjs-cqs (npm). Affects libjs-cqs versions 90.9.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
libjs-cqs is a JavaScript library available through npm, designed to facilitate certain functionalities in web applications. It is widely used due to its ease of integration and lightweight nature. However, like many open-source packages, it can be susceptible to vulnerabilities, particularly when malicious code is introduced into its ecosystem.
Vulnerability Detail
The vulnerability identified as MAL-2026-1770 involves the presence of malicious code within the libjs-cqs package. This issue originated from a compromised version of the package (version 90.9.0), which was reported by ReversingLabs. The malicious code can lead to unauthorized access or manipulation of the application using this package, potentially compromising sensitive data and application integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall libjs-cqs
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, you may consider removing the libjs-cqs package from your project until a secure version is available. You can do this by running: npm uninstall libjs-cqs. Alternatively, you can replace it with a different library that offers similar functionality without the associated risks.
Conclusion
The libjs-cqs package has been identified with a serious vulnerability due to malicious code. It is crucial for developers using this package to take immediate action by updating or removing it to safeguard their applications. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for libjs-cqs →
FAQ
The malicious code can potentially allow unauthorized access to application data and may manipulate the application's behavior.
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, it is advisable to update to a patched version of the libjs-cqs package as soon as it is available.
Consider removing the libjs-cqs package or replacing it with an alternative library until a secure version is released.
The vulnerability was reported by ReversingLabs, a cybersecurity firm specializing in threat intelligence.