Critical Malicious Code Vulnerability in secguest-lib Package
Summary
MAL-2026-169: Malicious code in secguest-lib (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 secguest-lib package is an npm library designed for various functionalities within JavaScript applications. However, it has been identified as containing malicious code that compromises the security of any system where it is installed. This vulnerability poses a significant risk to developers and organizations relying on this package for their projects.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the secguest-lib package. Any system running this package is considered fully compromised, with potential unauthorized access to sensitive information, including secrets and keys. The malicious code can lead to severe ramifications, including data breaches and loss of control over the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall secguest-lib
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, it is advised to uninstall the secguest-lib package using the following command: npm uninstall secguest-lib. Additionally, ensure that you review your system for any other potential malicious software that may have been installed as a result of this vulnerability.
Conclusion
The secguest-lib package poses a critical security risk due to embedded malicious code. Immediate removal of the package and rotation of sensitive information is necessary to mitigate potential damage. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for secguest-lib →
FAQ
secguest-lib is an npm package used in JavaScript applications, but it has been found to contain malicious code.
If you have the secguest-lib package installed, your system is considered compromised. It is essential to take immediate action.
You should rotate all secrets and keys immediately from a different, secure computer to prevent unauthorized access.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities without any signup.