Malicious Code Vulnerability in jsonauth Package

jsonauth Updated 24 Dec 2025

Summary

23/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-192809: Malicious code in jsonauth (npm). Affects jsonauth versions 7.2.7. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback