CVE-2024-51753: @workos inc/authkit remix @workos-inc/authkit-remix Refresh Tokens Are Logged Vulnerability

LOW
Advisory Identifier: GHSA-v2qh-f584-6hj8
CWE-532
Published
Advisory Summary

CVE-2024-51753 is a LOW @workos-inc/authkit-remix refresh tokens are logged vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting @workos inc/authkit remix libraries in the npm ecosystem. The issue involves @workos-inc/authkit-remix refresh tokens are logged when the debug flag is enabled. Remediation is available by upgrading affected packages to version 0.4.1.

CVE-2024-51753 at a Glance

CVE Identifier CVE-2024-51753
GHSA Identifier GHSA-v2qh-f584-6hj8
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product @workos inc/authkit remix
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2024-51753

To remediate this vulnerability, upgrade all affected @workos inc/authkit remix dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@workos-inc/authkit-remix fixed: 0.4.1
npm install @workos-inc/authkit-remix@0.4.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @workos-inc/authkit-remix

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-51753, inspect your project dependencies using npm:

npm ls @workos-inc/authkit-remix

Analyze the terminal output to locate any version of @workos inc/authkit remix in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.1), your application is affected.

Note: The npm ls @workos-inc/authkit-remix command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In @workos inc/authkit remix, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Refresh tokens are logged to the console when the disabled by default `debug` flag, is enabled. ### Patches Patched in [https://github.com/workos/authkit-remix/releases/tag/v0.4.1](https://github.com/workos/authkit-remix/releases/tag/v0.4.1)

CVE-2024-51753 Affected @workos inc/authkit remix Versions

1 component(s)
Fixed Versions:
0.4.1
Product / Package Ecosystem Affected Versions Fixed Version
@workos-inc/authkit-remix
npm
< 0.4.1
0.4.1

References

Frequently Asked Questions

What is CVE-2024-51753?
CVE-2024-51753 is a security vulnerability in @workos inc/authkit remix involving @workos-inc/authkit-remix refresh tokens are logged when the debug flag is enabled under CWE-532: Insertion of Sensitive Information into Log File.
Which @workos inc/authkit remix versions are affected?
Affected versions include releases prior to 0.4.1 across affected packages: @workos-inc/authkit-remix.
What version fixes CVE-2024-51753?
Upgrading to 0.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @workos-inc/authkit-remix affected?
Yes, @workos-inc/authkit-remix is affected in releases prior to 0.4.1. Upgrade your dependency to 0.4.1 or later.
What CWE is associated with CVE-2024-51753?
CVE-2024-51753 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check npm dependencies for CVE-2024-51753?
Run the dependency tree command: 'npm ls @workos-inc/authkit-remix'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-v2qh-f584-6hj8",
  "modified" : "2024-11-05T21:37:20Z",
  "published" : "2024-11-05T17:34:47Z",
  "aliases" : [ "CVE-2024-51753" ],
  "summary" : "@workos-inc/authkit-remix refresh tokens are logged when the debug flag is enabled",
  "details" : "### Impact\nRefresh tokens are logged to the console when the disabled by default `debug` flag, is enabled.\n\n### Patches\nPatched in [https://github.com/workos/authkit-remix/releases/tag/v0.4.1](https://github.com/workos/authkit-remix/releases/tag/v0.4.1)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@workos-inc/authkit-remix"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/workos/authkit-remix/security/advisories/GHSA-v2qh-f584-6hj8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-51753"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/workos/authkit-remix/commit/32d5bcd54c795c1e2a3204f8e3977ab9ad57ec06"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/workos/authkit-remix"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/workos/authkit-remix/releases/tag/v0.4.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-05T17:34:47Z",
    "nvd_published_at" : "2024-11-05T20:15:15Z"
  }
}