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

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-11-05T17:34:23.000Z
- Modified: 2026-06-17T08:06:16.003Z
- Also known as: GHSA-5wmg-9cvh-qw25
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- workos authkit-nextjs: < 0.13.2; before 0.13.2
- @workos-inc/authkit-nextjs (npm): before 0.13.2

## Every score

- GitHub_M: CVSS:4.0 2.1 Low `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`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/workos/authkit-nextjs/security/advisories/GHSA-5wmg-9cvh-qw25> (vendor-advisory, web)
- <https://github.com/workos/authkit-nextjs/commit/15a332632f7560b03cc6d8cc8da24fd2ac931da7> (patch, web)
- <https://github.com/workos/authkit-nextjs/releases/tag/v0.13.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-51752> (advisory)
- <https://github.com/workos/authkit-nextjs> (package)

## Sources

- CVE List: [CVE-2024-51752](https://www.cve.org/CVERecord?id=CVE-2024-51752), CVE Terms of Use, modified 2024-11-05
- GitHub Advisory Database: [GHSA-5wmg-9cvh-qw25](https://github.com/advisories/GHSA-5wmg-9cvh-qw25), CC-BY-4.0, modified 2024-11-05
- NVD: [CVE-2024-51752](https://nvd.nist.gov/vuln/detail/CVE-2024-51752), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-51752 · Whole record: https://cve.day/CVE-2024-51752.json · Rebuilt by cve.day 2026-11-25T22:58:47.802Z
