{"id":"CVE-2024-51752","published":"2024-11-05T19:16:41Z","modified":"2024-11-05T20:15:07Z","title":"Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-nextjs","vendor":"workos","product":"authkit-nextjs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00366,"percentile":0.22571,"provenance":"source"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"references":[{"url":"https://github.com/workos/authkit-nextjs/security/advisories/GHSA-5wmg-9cvh-qw25","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/workos/authkit-nextjs/commit/15a332632f7560b03cc6d8cc8da24fd2ac931da7","tags":["x_refsource_MISC"]},{"url":"https://github.com/workos/authkit-nextjs/releases/tag/v0.13.2","tags":["x_refsource_MISC"]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":4.51},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"workos","affectedVersions":[{"vendor":"workos","product":"authkit-nextjs","versions":["< 0.13.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-05T20:14:57.346838Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@workos-inc/authkit-nextjs","vulnerableRanges":["<0.13.2"],"patched":["0.13.2"],"from":["GHSA-5wmg-9cvh-qw25"],"provenance":"source"}],"summary":{"text":"Refresh tokens are written to the console log in affected versions of the @workos-inc/authkit-nextjs library, the AuthKit helper package for Next.js, whenever its debug flag is enabled (the flag is off by default). An attacker with local access to the environment where the logs are produced or readable, and with no authentication or user interaction required, could obtain those refresh tokens, provided debug logging has been turned on.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:15Z"},"euvd":{"id":"EUVD-2024-3200","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-workos-authkit-nextjs-cve-2024-29901","parents":[{"from":"CVE-2024-29901","to":"CVE-2024-51752","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/session.ts"],"commits":["https://github.com/workos/authkit-nextjs/commit/6c3f4f3179d66cbb15de3962792083ff3b244a01","https://github.com/workos/authkit-nextjs/commit/15a332632f7560b03cc6d8cc8da24fd2ac931da7"],"basis":"shared function","functions":["updateSession"]}]}],"children":[{"from":"CVE-2024-51752","to":"CVE-2025-64762","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/session.ts"],"commits":["https://github.com/workos/authkit-nextjs/commit/15a332632f7560b03cc6d8cc8da24fd2ac931da7","https://github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea"],"basis":"shared function","functions":["updateSession"]}]}]}}