CVE-2024-51753: @workos-inc/authkit-remix Refresh Tokens Logged in Debug Mode

@workos-inc/authkit-remix Updated 14 Dec 2025

Summary

05/11/2024
Yes i
Low
0.4

CVE-2024-51753: @workos-inc/authkit-remix refresh tokens are logged when the debug flag is enabled. Affects @workos-inc/authkit-remix versions < 0.4.1. Fixed in 0.4.1. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The @workos-inc/authkit-remix package is a library designed for authentication in Remix applications, providing features such as user login, session management, and token handling. It is widely used in web applications to streamline user authentication processes. However, a vulnerability exists when the debug flag is enabled, which can lead to sensitive information exposure.

Vulnerability Detail

The vulnerability arises from the logging of refresh tokens to the console when the debug flag, which is disabled by default, is turned on. This can lead to unauthorized access if an attacker gains access to the console output, potentially compromising user sessions and sensitive data. The issue is classified under CWE-532, which pertains to the exposure of sensitive information through log files.

How To Fix

Minimum fixed version

0.4.1

This is the first release that contains the fix.

npm install @workos-inc/authkit-remix@0.4.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid enabling the debug flag in production environments to prevent refresh tokens from being logged. Ensure that your application is configured to handle sensitive information securely.

Conclusion

The @workos-inc/authkit-remix package has a vulnerability that can expose refresh tokens when the debug flag is enabled. It is crucial to update to the patched version 0.4.1 to secure your application. Until then, avoid enabling the debug mode in production to protect sensitive information.

See every vulnerability recorded for @workos-inc/authkit-remix →

Share this vulnerability

FAQ

The vulnerability can lead to the exposure of refresh tokens in the console, which may allow attackers to hijack user sessions.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

No, the debug flag is disabled by default, which means the vulnerability is not active unless explicitly enabled.

If you cannot update the package, ensure that the debug flag remains disabled in your production environment to mitigate the risk.

More information can be found in the GitHub advisory and the release notes for the patched version of the package.

Related vulnerabilities

Recent vulnerabilities recorded for @workos-inc/authkit-remix.

How To Fix

Minimum fixed version

0.4.1

This is the first release that contains the fix.

npm install @workos-inc/authkit-remix@0.4.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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