CVE-2024-51752
JavaScript vulnerability analysis and mitigation

Overview

The AuthKit library for Next.js, which provides authentication and session management using WorkOS & AuthKit with Next.js, contains a vulnerability where refresh tokens are logged to the console when the disabled-by-default debug flag is enabled. This vulnerability was discovered and disclosed on November 5, 2024, and affects versions prior to 0.13.2 (GitHub Advisory).

Technical details

The vulnerability is identified as CVE-2024-51752 and has been classified as Low severity with a CVSS Base Score of 2.1. The issue stems from the logging functionality that exposes refresh tokens in console logs when debug mode is activated. The vulnerability is categorized under CWE-532 (Insertion of Sensitive Information into Log File) (NVD).

Impact

When the debug flag is enabled, refresh tokens are exposed in console logs, potentially compromising the security of user sessions. This exposure could allow attackers with access to the logs to hijack user sessions (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.13.2. Users are advised to upgrade to this version or later. There are no known workarounds for this vulnerability other than upgrading to the patched version (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management