Open Redirect Affecting express package, versions >=3.4.5 <4.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.06% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-EXPRESS-8161998
  • published4 Oct 2024
  • disclosed3 Oct 2024
  • creditMatvejs Mascenko

Introduced: 3 Oct 2024

CVE-2024-9266  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade express to version 4.0.0 or higher.

Overview

express is a minimalist web framework.

Affected versions of this package are vulnerable to Open Redirect via the location() method in response.js.

Notes:

  1. Express 3 has reached End-of-Life and will not receive any updates to address this issue.

  2. This vulnerability is achievable only when: a request path begins with double slashes // and a relative path for redirection begins with ./ and is provided from user-controlled input and the Location header is set with that user-controlled input.

References

CVSS Scores

version 4.0
version 3.1