Open Redirect Affecting org.webjars.npm:express package, versions [3.4.8,4.6.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    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 ID SNYK-JAVA-ORGWEBJARSNPM-8163103
  • published 9 Oct 2024
  • disclosed 3 Oct 2024
  • credit Matvejs Mascenko

How to fix?

Upgrade org.webjars.npm:express to version 4.6.1 or higher.

Overview

org.webjars.npm:express is a WebJar for express.

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
Expand this section

Snyk

Recommended
4.9 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Passive
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    Low
  • Confidentiality (SC)
    High
  • Integrity (SI)
    None
  • Availability (SA)
    None