auth0/express-openid-connect · Security
Session fixation in express-openid-connect
- GHSA ID
- GHSA-7rg2-qxmf-hhx9
- CVE ID
- CVE-2021-41246
- Severity
- medium
- Published
- Updated
- CVSS
- 4.6 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
- CVSS v3
- 4.6 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Description
Overview
Versions 2.3.0 up to and including 2.5.1 do not regenerate the session id and session cookie when user logs in. This behavior opens up the application to various session fixation vulnerabilities.
Am I affected?
You are affected by this vulnerability if you are using express-openid-connect version 2.3.0 up to and including 2.5.1 and use a custom session store.
How to fix that?
Upgrade to version >= 2.5.2.
Will this update impact my users?
The fix provided in patch will not affect your users.
CWEs
- CWE-384 · Session Fixation
References
- https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7rg2-qxmf-hhx9 ↗
- https://github.com/auth0/express-openid-connect/commit/5ab67ff2bd84f76674066b5e129b43ab5f2f430f ↗
- https://nvd.nist.gov/vuln/detail/CVE-2021-41246 ↗
- https://github.com/auth0/express-openid-connect/releases/tag/v2.5.2 ↗
- https://github.com/advisories/GHSA-7rg2-qxmf-hhx9 ↗