Open Redirect in express-openid-connect
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-601.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| auth0 | express-openid-connect | before 2.7.2 | 2.7.2 | Patch available | CNA |
| — | express-openid-connect (npm) | before 2.7.2 | 2.7.2 | Patch available | GHSA-7p99-3798-f85c |
- express-openid-connect Vendorauth0 Affected before 2.7.2 Fixed in 2.7.2 Patch available CNA
- express-openid-connect (npm) Vendor— Affected before 2.7.2 Fixed in 2.7.2 Patch available GHSA-7p99-3798-f85c
Remediation
- Fix · CNA express-openid-connect (auth0) Fixed in 2.7.2
- Fix · GHSA-7p99-3798-f85c express-openid-connect (npm) Fixed in 2.7.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24794
- 2026-10-03 Alias added: GHSA-7p99-3798-f85c
References
Patch 1
Advisory 2
More auth0 Express Openid Connect vulnerabilities
- TI-2021-18081 Session fixation in express-openid-connect CVSS 3.1HIGH 8.8
Sources
- CVE-2022-24794 · CVE Program
- CVE-2022-24794 · NVD
- FIRST EPSS
- GHSA-7p99-3798-f85c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences