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, are 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.
Advisories
Source ID Title
EUVD EUVD EUVD-2022-1363 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, are 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.
Github GHSA Github GHSA GHSA-7p99-3798-f85c URL Redirection to Untrusted Site ('Open Redirect') in express-openid-connect
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-04-23T18:42:41.286Z

Reserved: 2022-02-10T00:00:00.000Z

Link: CVE-2022-24794

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2022-03-31T23:15:08.127

Modified: 2024-11-21T06:51:06.703

Link: CVE-2022-24794

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.