Malicious Code Vulnerability in jsonauth Package
Summary
MAL-2025-192809: Malicious code in jsonauth (npm). Affects jsonauth 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 jsonauth package is a Node.js library designed for handling JSON-based authentication processes. It provides developers with tools to easily implement authentication mechanisms in their applications. However, this package has been identified as containing malicious code, which poses significant security risks to applications that rely on it.
Vulnerability Detail
The vulnerability in the jsonauth package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code may allow unauthorized access to sensitive data or enable attackers to execute arbitrary commands within the affected systems. The malicious nature of this vulnerability was identified through analysis by security researchers, highlighting the need for immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall jsonauth
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 measure, you can remove the jsonauth package from your project until a secure version is released. You can do this by running the command: 'npm uninstall jsonauth'. Consider using alternative authentication libraries that are known to be secure.
Conclusion
The jsonauth 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 to a patched version or removing the package altogether. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for jsonauth →
FAQ
jsonauth is a Node.js library that facilitates JSON-based authentication processes for web applications.
The malicious code can potentially allow unauthorized access to sensitive data and enable attackers to execute arbitrary commands.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
Yes, updating to the latest version of the jsonauth package will address the vulnerability. Use 'npm update jsonauth' to apply the patch.
If an immediate update is not possible, consider removing the jsonauth package and using alternative libraries until a secure version is available.