CVE-2021-41246 json
Session fixation in express-openid-connect
published 2021-12-09 4 y ago modified 2026-07-08 4 mo ago also GHSA-7rg2-qxmf-hhx9 , EUVD-2021-2474
- cvss
- 4.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm express-openid-connect 2.5.2
- auth0 express_openid_connect 2.5.2
Exploit prediction
0.92% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | express-openid-connect | >=2.3.0, <2.5.2 |
2.5.2 |
Affected products
- auth0 express-openid-connect
Classification
- Weakness
-
- CWE-384 Session Fixation
References
-
github.com
/auth0/express-openid-connect/commit/5ab67ff2bd84f76674066b5e129b43ab5f2f430f
web, patch, third-party-advisory
-
github.com
/auth0/express-openid-connect/security/advisories/GHSA-7rg2-qxmf-hhx9
web, third-party-advisory
-
github.com
/auth0/express-openid-connect/releases/tag/v2.5.2
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-41246
advisory
-
github.com
/auth0/express-openid-connect
package
Sources
- CVE List CVE-2021-41246
- GitHub Advisory GHSA-7rg2-qxmf-hhx9
- NVD CVE-2021-41246
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.