{"id":"CVE-2022-24794","aliases":["GHSA-7p99-3798-f85c"],"url":"https://o3.security/vulnerability/CVE-2022-24794","summary":"Open Redirect in express-openid-connect","details":"### Impact\nUsers 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.\n\nIf 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 sanitised.\n\n### Am I affected?\nYou are affected by this vulnerability if you are using the `requiresAuth` middleware on a catch all route or the default `authRequired` option and `express-openid-connect` version `<=2.7.1`.\n\n### How to fix that?\nUpgrade to version `>=2.7.2`\n\n### Will this update impact my users?\nThe fix provided in the patch will not affect your users.\n","published":"2022-03-31T22:45:14Z","modified":"2026-08-12T03:51:35.676784303Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N"},"epss":{"score":0.00738,"percentile":0.51433,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"express-openid-connect","fixedVersion":"2.7.2"}],"fix":{"url":"https://github.com/auth0/express-openid-connect/commit/0947b92164a2c5f661ebcc183d37e7f21de719ad","label":"auth0/express-openid-connect@0947b92"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24794.json"},{"type":"ADVISORY","url":"https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7p99-3798-f85c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24794"},{"type":"FIX","url":"https://github.com/auth0/express-openid-connect/commit/0947b92164a2c5f661ebcc183d37e7f21de719ad"},{"type":"PACKAGE","url":"https://github.com/auth0/express-openid-connect"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:35.676784303Z"}}