CVE-2021-41246
HIGH 8.8CVSS 3.1Session fixation in express-openid-connect
Express OpenID Connect is express JS middleware implementing sign on for Express web apps using OpenID Connect. Versions before 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. Versions 2.5.2 contains a patch for this issue.
- Published
- 9 Dec 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-384
- Also known as
- GHSA-7rg2-qxmf-hhx9
- Sources
- NVDJSONOSV GHSA-7rg2-qxmf-hhx9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | auth0 | express_openid_connectcpe:2.3:a:auth0:express_openid_connect:*:*:*:*:*:node.js:*:* |
>= 2.3.0, < 2.5.2 | 2.5.2 |
| OSV | npm | express-openid-connect | >= 2.3.0, < 2.5.2 | 2.5.2 |
References
- https://github.com/auth0/express-openid-connect/commit/5ab67ff2bd84f76674066b5e129b43ab5f2f430f · Patch, Third Party Advisory, WEB
- https://github.com/auth0/express-openid-connect/releases/tag/v2.5.2 · Release Notes, Third Party Advisory, WEB
- https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7rg2-qxmf-hhx9 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41246 · ADVISORY
- https://github.com/auth0/express-openid-connect · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 9 Dec 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 9 Dec 2021)