Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. express-openid-connect
  4. ›
  5. CVE-2022-24794

CVE-2022-24794: URL Redirection to Untrusted Site ('Open Redirect')

March 31, 2022 (updated April 8, 2022)

Express OpenID Connect is an Express JS middleware implementing sign on for Express web apps using OpenID Connect. Users of the requiresAuth middleware, either directly or through the default authRequired option, is vulnerable to an Open Redirect when the middleware is applied to a catch all route. If all routes under example.com are protected with the requiresAuth middleware, a visit to http://example.com//google.com will be redirected to google.com after login because the original url reported by the Express framework is not properly sanitized. This vulnerability affects versions prior to 2.7.2. Users are advised to upgrade. There are no known workarounds.

References

  • github.com/advisories/GHSA-7p99-3798-f85c
  • github.com/auth0/express-openid-connect/security/advisories/GHSA-7p99-3798-f85c

Code Behaviors & Features

Detect and mitigate CVE-2022-24794 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.7.2

Fixed versions

  • 2.7.2

Solution

Upgrade to version 2.7.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/express-openid-connect/CVE-2022-24794.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.