What’s Vulnerable › Vulnerabilities
CVE-2024-51752: Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-nextjs
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-11-05 · updated 2026-06-17
- Weakness: CWE-532
Description
The AuthKit library for Next.js provides convenient helpers for authentication and session management using WorkOS & AuthKit with Next.js. In affected versions refresh tokens are logged to the console when the disabled by default `debug` flag, is enabled. This issue has been patched in version 0.13.2 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected products
- workos authkit-nextjs: before 0.13.2 — fixed in 0.13.2
How to fix
Upgrade to a fixed version: workos authkit-nextjs 0.13.2. Check the vendor advisory for mitigations.
References
- https://github.com/workos/authkit-nextjs/commit/15a332632f7560b03cc6d8cc8da24fd2ac931da7
- https://github.com/workos/authkit-nextjs/releases/tag/v0.13.2
- https://github.com/workos/authkit-nextjs/security/advisories/GHSA-5wmg-9cvh-qw25
Get alerted when CVE-2024-51752 or the next vulnerability affects your stack