CVE-2024-9266: Express Express Open Redirect Vulnerability Vulnerability

LOW
Advisory Identifier: GHSA-jj78-5fmv-mv28
CVSS 4.7
CWE-601
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-9266
GHSA Identifier GHSA-jj78-5fmv-mv28
Severity LOW
CVSS v3.1 Base Score 4.7
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Express
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

express fixed: 4.0.0-rc1
npm install express@4.0.0-rc1
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 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

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.

CVE-2024-9266 Affected Express Versions

1 component(s)
Fixed Versions:
4.0.0-rc1
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?
CVE-2024-9266 is a security vulnerability in Express involving Express Open Redirect vulnerability under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Express versions are affected?
Affected versions include releases prior to 4.0.0-rc1 across affected packages: express.
What version fixes CVE-2024-9266?
Upgrading to 4.0.0-rc1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is express affected?
Yes, express is affected in releases prior to 4.0.0-rc1. Upgrade your dependency to 4.0.0-rc1 or later.
What is the CVSS score of CVE-2024-9266?
CVE-2024-9266 has a CVSS v3.1 base score of 4.7 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2024-9266?
CVE-2024-9266 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check npm dependencies for CVE-2024-9266?
Run the dependency tree command: 'npm ls express'. 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-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"
  }
}