CVE-2024-51752 Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-nextjs
Attackers can obtain refresh tokens if the debug flag is enabled, potentially leading to session hijacking.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-51752?
CVE-2024-51752 is a low-severity vulnerability in workos authkit-nextjs, published on 5 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-532
Which versions are affected by CVE-2024-51752?
2 open source packages ship an affected version, including @workos-inc/authkit-nextjs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@workos-inc/authkit-nextjs npm | All versions | 0.13.2 |
@workos-inc/authkit-nextjs npm | All versions | 0.13.2 |
Products include Workos Authkit-Nextjs.
How do I fix CVE-2024-51752?
Upgrade @workos-inc/authkit-nextjs to 0.13.2 or later.
Is CVE-2024-51752 being exploited?
There is no known exploitation of CVE-2024-51752 in the wild and no public exploit code.
Other vulnerabilities in workos authkit-nextjs
Sources
Also known as GHSA-5wmg-9cvh-qw25.