{"id":"CVE-2021-41246","published":"2021-12-09T15:55:10Z","modified":"2024-08-04T03:08:31Z","title":"Session fixation in express-openid-connect","vendor":"auth0","product":"express-openid-connect","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00924,"percentile":0.61269,"provenance":"source"},"cwes":[{"id":"CWE-384","name":"Session Fixation"}],"references":[{"url":"https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7rg2-qxmf-hhx9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/auth0/express-openid-connect/commit/5ab67ff2bd84f76674066b5e129b43ab5f2f430f","tags":["x_refsource_MISC"]},{"url":"https://github.com/auth0/express-openid-connect/releases/tag/v2.5.2","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":12.25},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"auth0","affectedVersions":[{"vendor":"auth0","product":"express-openid-connect","versions":[">= 2.3.0, < 2.5.2"]}],"affected":[{"ecosystem":"npm","package":"express-openid-connect","vulnerableRanges":[">=2.3.0, <2.5.2"],"patched":["2.5.2"],"from":["GHSA-7rg2-qxmf-hhx9"],"provenance":"source"}],"summary":{"text":"Session fixation in the express-openid-connect middleware, the Express JS package that provides OpenID Connect sign-on for Express web apps, where the session id and session cookie are not regenerated when a user logs in. An attacker who can get a victim to use a session identifier the attacker already knows, which requires some user interaction, can then exploit this to gain access to the victim's session and impact confidentiality and integrity over the network with low privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:50Z"},"euvd":{"id":"EUVD-2021-2474","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41246","published":"2021-12-09","fixed":"2.5.2","kev":false},{"cve":"CVE-2022-24794","published":"2022-03-31","fixed":"2.7.2","kev":false,"link":{"from":"CVE-2021-41246","to":"CVE-2022-24794","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:express-openid-connect","fromFixed":"2.5.2","toFixed":"2.7.2","daysApart":112}]}}],"package":"npm:express-openid-connect"}}