Skip to content
Heist/ feed
Back to feed
Low

Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-nextjs

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-51752
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 03:16 UTC · Revision 1

Source evidence

Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-nextjs

core-osv · Original source

Published 5 Nov 2024, 19:16 UTC

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.

osv:CVE-2024-51752
Complete source record
{
  "id": "32136fb19e4c3c2df73b6e8e99054feeed7a0e2ed645ea08a7b38a92ea811d07",
  "url": "https://osv.dev/vulnerability/CVE-2024-51752",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-nextjs",
    "summary": "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.",
    "evidence": "osv:CVE-2024-51752",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2024-51752",
      "aliases": [
        "CVE-2024-51752",
        "GHSA-5wmg-9cvh-qw25"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/workos/authkit-nextjs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "15a332632f7560b03cc6d8cc8da24fd2ac931da7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.13.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "15a332632f7560b03cc6d8cc8da24fd2ac931da7"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "15a332632f7560b03cc6d8cc8da24fd2ac931da7"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.13.2"
                  },
                  {
                    "cpe": "cpe:2.3:a:workos:authkit-nextjs:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.13.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.13.1",
            "v0.13.0",
            "v0.12.3",
            "v0.12.2",
            "v0.12.1",
            "v0.12.0",
            "v0.11.2",
            "v0.11.1",
            "v0.11.0",
            "v0.10.1",
            "v0.10.0",
            "v0.9.0",
            "v0.8.2",
            "v0.8.1",
            "v0.8.0",
            "v0.7.0",
            "v0.6.2",
            "v0.6.1",
            "v0.6.0",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.0",
            "v0.3.0-rc.0",
            "v0.2.0",
            "v0.1.0",
            "v0.1.0-rc.3",
            "v0.1.0-rc.2",
            "v0.1.0-rc.1",
            "v0.1.0-rc.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-51752.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.211716537Z",
      "provider": "osv",
      "references": [
        "https://github.com/workos/authkit-nextjs/releases/tag/v0.13.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51752.json",
        "https://github.com/workos/authkit-nextjs/security/advisories/GHSA-5wmg-9cvh-qw25",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-51752",
        "https://github.com/workos/authkit-nextjs/commit/15a332632f7560b03cc6d8cc8da24fd2ac931da7"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-532"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51752.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-51752",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 522134,
  "published_at": "2024-11-05T19:16:41.831+00:00"
}