{"id":"CVE-2022-24794","published":"2022-03-31T22:45:14Z","modified":"2025-04-23T18:42:41Z","title":"Open Redirect in express-openid-connect","vendor":"auth0","product":"express-openid-connect","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00738,"percentile":0.55462,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7p99-3798-f85c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/auth0/express-openid-connect/commit/0947b92164a2c5f661ebcc183d37e7f21de719ad","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":11.09},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"auth0","affectedVersions":[{"vendor":"auth0","product":"express-openid-connect","versions":["< 2.7.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:08:21.338002Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"express-openid-connect","vulnerableRanges":["<2.7.2"],"patched":["2.7.2"],"from":["GHSA-7p99-3798-f85c"],"provenance":"source"}],"summary":{"text":"In express-openid-connect, the requiresAuth middleware (including when applied via the default authRequired option) fails to sanitise the original URL reported by Express, creating an open redirect when the middleware guards a catch-all route. An attacker who can get a victim to visit a crafted URL such as one with a doubled slash followed by an external domain can have the user redirected to that external site after completing login, with the attack requiring the victim to follow the link and authenticate.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:13:54Z"},"euvd":{"id":"EUVD-2022-1363","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41246","published":"2021-12-09","fixed":"2.5.2","kev":false,"link":{"from":"CVE-2021-41246","to":"CVE-2022-24794","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:express-openid-connect","fromFixed":"2.5.2","toFixed":"2.7.2","daysApart":112}]}},{"cve":"CVE-2022-24794","published":"2022-03-31","fixed":"2.7.2","kev":false}],"package":"npm:express-openid-connect"}}