Malicious Code Vulnerability in jsonauthcap Package
Summary
MAL-2025-192810: Malicious code in jsonauthcap (npm). Affects jsonauthcap versions 7.2.7. 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 jsonauthcap package is a Node.js library designed for handling JSON authentication capabilities in web applications. It provides developers with tools to manage user authentication securely. However, this package has been identified with a serious vulnerability that could allow malicious code execution, potentially compromising the security of applications that rely on it.
Vulnerability Detail
The vulnerability in the jsonauthcap package stems from the introduction of malicious code within version 7.2.7. This malicious code can lead to unauthorized access, data breaches, or other malicious activities within applications utilizing this package. The issue was reported by ReversingLabs, highlighting the need for immediate attention and remediation to protect users and their data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall jsonauthcap
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 can remove the jsonauthcap package from your project until a secure version is released. To do this, run the following command: 'npm uninstall jsonauthcap'. This will prevent any potential exploitation of the vulnerability while you await a patch.
Conclusion
The jsonauthcap package has a critical vulnerability due to the presence of malicious code in version 7.2.7. Users are advised to update or remove the package to safeguard their applications. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for jsonauthcap →
FAQ
The jsonauthcap package is used for managing JSON authentication capabilities in Node.js applications, providing tools for secure user authentication.
The vulnerability involves malicious code that can execute unauthorized actions within applications using the package, posing a significant security risk.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you cannot update the package right away, consider removing it from your project as a temporary measure to avoid potential exploitation.
The vulnerability was reported by ReversingLabs, a cybersecurity firm specializing in identifying and analyzing malicious software.