Open Redirect Affecting @okta/oidc-middleware package, versions <5.0.0


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.06% (27th 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-OKTAOIDCMIDDLEWARE-3227626
  • published10 Jan 2023
  • disclosed9 Jan 2023
  • creditjviding

Introduced: 9 Jan 2023

CVE-2022-3145  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade @okta/oidc-middleware to version 5.0.0 or higher.

Overview

@okta/oidc-middleware is an OpenId Connect middleware for authorization code flows

Affected versions of this package are vulnerable to Open Redirect allowing an attacker to redirect a user to an arbitrary URL. To exploit this vulnerability an attacker would need to send a victim a malformed URL containing a target server that they control. Once a user successfully completed the login process, the victim user would then be redirected to the attacker-controlled site.

CVSS Base Scores

version 3.1