CVE-2024-9266: Express Express Open Redirect Vulnerability Vulnerability
LOWCVE-2024-9266 is a LOW (CVSS 4.7) express open redirect vulnerability vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Express libraries in the npm ecosystem. The issue involves express open redirect vulnerability. Remediation is available by upgrading affected packages to version 4.0.0-rc1.
CVE-2024-9266 at a Glance
Security Impact
CVSS: 4.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N).
How to Fix CVE-2024-9266
To remediate this vulnerability, upgrade all affected Express 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 express@4.0.0-rc1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls express
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-9266, inspect your project dependencies using npm:
npm ls express
Analyze the terminal output to locate any version of Express in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0-rc1), your application is affected.
Note: The npm ls express 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Express, 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-9266 Affected Express Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
express
|
npm |
≥ 3.4.5
< 4.0.0-rc1
|
4.0.0-rc1
|
References
Frequently Asked Questions
What is CVE-2024-9266?
Which Express versions are affected?
What version fixes CVE-2024-9266?
Is express affected?
What is the CVSS score of CVE-2024-9266?
What CWE is associated with CVE-2024-9266?
How can I check npm dependencies for CVE-2024-9266?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jj78-5fmv-mv28",
"modified" : "2024-10-09T23:46:55Z",
"published" : "2024-10-03T21:31:05Z",
"aliases" : [ "CVE-2024-9266" ],
"summary" : "Express Open Redirect vulnerability",
"details" : "URL Redirection to Untrusted Site ('Open Redirect') vulnerability in Express. This vulnerability affects the use of the Express Response object. This issue impacts Express: from 3.4.5 before 4.0.0-rc1.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "express"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.4.5"
}, {
"fixed" : "4.0.0-rc1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-9266"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/expressjs/express"
}, {
"type" : "WEB",
"url" : "https://github.com/expressjs/express/compare/3.4.4...3.4.5"
}, {
"type" : "WEB",
"url" : "https://www.herodevs.com/vulnerability-directory/cve-2024-9266"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-09T17:03:12Z",
"nvd_published_at" : "2024-10-03T19:15:05Z"
}
}