# CVE-2024-51752: Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-nextjs

> CVE-2024-51752: Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-nextjs. CVSS 5.5 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2024-51752
Last updated: 2026-06-17T08:06:16Z

- Published: 2024-11-05 19:16 UTC · Updated: 2026-06-17 08:06 UTC · Assigner: GitHub\_M
- CVSS: 5.5 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.25%, 16th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: 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 vendors and products

- workos: authkit-nextjs

## Tracked companies

- [WorkOS](https://rewindex.com/company/workos.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-51752)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2024-51752)
- [https://github.com/workos/authkit-nextjs/commit/15a332632f7560b03cc6d8cc8da24fd2ac931da7](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/releases/tag/v0.13.2)
- [https://github.com/workos/authkit-nextjs/security/advisories/GHSA-5wmg-9cvh-qw25](https://github.com/workos/authkit-nextjs/security/advisories/GHSA-5wmg-9cvh-qw25)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2024-51752 · Markdown: https://rewindex.com/cve/CVE-2024-51752.md · JSON: https://rewindex.com/api/v1/cves/CVE-2024-51752 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:12:35.946Z
