Skip to content

CVE-2022-24794 Open Redirect in express-openid-connect

MediumCVSS 6.1 EPSS 0.74%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
auth0 express openid connect < 2.7.2 2.7.2 Fixed
npm express-openid-connect(npm) < 2.7.2 2.7.2 Fixed
auth0 express-openid-connect = < 2.7.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm express-openid-connect(npm) < 2.7.2 2.7.2
auth0 express-openid-connect = < 2.7.2 No fix listed
auth0 express openid connect < 2.7.2 2.7.2

References