CVE-2024-29901: @workos inc/authkit nextjs @workos-inc/authkit-nextjs Session Replay Vulnerability Vulnerability
MODERATECVE-2024-29901 is a MODERATE (CVSS 4.8) @workos-inc/authkit-nextjs session replay vulnerability vulnerability (CWE-294: Authentication Bypass by Capture-replay) affecting @workos inc/authkit nextjs libraries in the npm ecosystem. The issue involves @workos-inc/authkit-nextjs session replay vulnerability. Remediation is available by upgrading affected packages to version 0.4.2.
CVE-2024-29901 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2024-29901
To remediate this vulnerability, upgrade all affected @workos inc/authkit nextjs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @workos-inc/authkit-nextjs@0.4.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @workos-inc/authkit-nextjs
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-29901, inspect your project dependencies using npm:
npm ls @workos-inc/authkit-nextjs
Analyze the terminal output to locate any version of @workos inc/authkit nextjs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.2), your application is affected.
Note: The npm ls @workos-inc/authkit-nextjs 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-294: Authentication Bypass by Capture-replay, where a capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes). In @workos inc/authkit nextjs, 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
CVE-2024-29901 Affected @workos inc/authkit nextjs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@workos-inc/authkit-nextjs
|
npm |
< 0.4.2
|
0.4.2
|
References
Frequently Asked Questions
What is CVE-2024-29901?
Which @workos inc/authkit nextjs versions are affected?
What version fixes CVE-2024-29901?
Is @workos-inc/authkit-nextjs affected?
What is the CVSS score of CVE-2024-29901?
What CWE is associated with CVE-2024-29901?
How can I check npm dependencies for CVE-2024-29901?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-35w3-6qhc-474v",
"modified" : "2024-03-29T20:16:00Z",
"published" : "2024-03-29T20:16:00Z",
"aliases" : [ "CVE-2024-29901" ],
"summary" : "@workos-inc/authkit-nextjs session replay vulnerability",
"details" : "### Impact\n\nA user can reuse an expired session by controlling the `x-workos-session` header.\n\n### Patches\n\nPatched in https://github.com/workos/authkit-nextjs/releases/tag/v0.4.2",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@workos-inc/authkit-nextjs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/workos/authkit-nextjs/security/advisories/GHSA-35w3-6qhc-474v"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29901"
}, {
"type" : "WEB",
"url" : "https://github.com/workos/authkit-nextjs/commit/6c3f4f3179d66cbb15de3962792083ff3b244a01"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/workos/authkit-nextjs"
}, {
"type" : "WEB",
"url" : "https://github.com/workos/authkit-nextjs/releases/tag/v0.4.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-294" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-29T20:16:00Z",
"nvd_published_at" : "2024-03-29T16:15:08Z"
}
}