Critical Malicious Code Vulnerability in auth-types Package
Summary
MAL-2026-215: Malicious code in auth-types (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 auth-types package is a Node.js library used for managing authentication types in applications. It provides developers with a streamlined way to implement various authentication mechanisms. However, this package has been compromised, leading to significant security concerns for any system utilizing it.
Vulnerability Detail
The vulnerability originates from the presence of malicious code embedded within the auth-types package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code is classified under CWE-506, indicating that it contains embedded malicious code. Users are advised to treat any system running this package as compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall auth-types
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, ensure that all secrets and keys stored on the affected computer are rotated immediately from a different, secure computer. This step is crucial to mitigate the risk of unauthorized access.
Conclusion
The auth-types package has been identified as containing malicious code that poses a serious security risk. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for auth-types →
FAQ
You should remove the auth-types package immediately and rotate any sensitive information stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
Currently, there is no patched version available. The best course of action is to remove the package entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive data and complete compromise of your system.
Vulert monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file, providing an easy way to stay informed.