CVE-2024-51752: @workos-inc/authkit-nextjs refresh tokens are logged when the debug flag is enabled
2.1
CVSS Score
4.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.13177%
CWE
Published
11/5/2024
Updated
11/5/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
@workos-inc/authkit-nextjs | npm | < 0.13.2 | 0.13.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows two critical changes in src/session.ts
where refresh token logging was removed. The original code contained 'console.log('Session invalid. Attempting refresh', session.refreshToken)' and 'console.log('Refresh successful:', refreshToken)', both guarded by a debug flag check. These statements exposed sensitive credentials in logs. The patched version replaces them with partial access token logging, confirming these were the vulnerable points. No other functions
/files
in the diff showed security-sensitive logging patterns.