{"id":"CVE-2021-41246","aliases":["CVE-2021-41246","GHSA-7rg2-qxmf-hhx9"],"related":[],"kind":"vulnerability","state":"published","title":"Session fixation in express-openid-connect","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Overview\n\nVersions `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.\n\n### Am I affected?\nYou 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.\n\n\n### How to fix that?\nUpgrade to version `>= 2.5.2`.\n\n### Will this update impact my users?\nThe fix provided in patch will not affect your users.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Express OpenID Connect es un middleware JS que implementa el inicio de sesión para aplicaciones web Express usando OpenID Connect. Las versiones anteriores a \"2.5.1\" incluyéndola, no regeneran el identificador y la cookie de sesión cuando el usuario inicia la sesión. Este comportamiento abre la aplicación a varias vulnerabilidades de fijación de sesión. Las versiones \"2.5.2\" contienen un parche para este problema","source":"nvd"}],"published":"2021-12-09T15:55:10.000Z","modified":"2026-07-08T06:28:35.377Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-384"],"affected":[{"ranges":[{"version":">= 2.3.0, < 2.5.2","status":"affected"}],"vendor":"auth0","product":"express-openid-connect","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.3.0","status":"affected","fixed":"2.5.2"}],"ecosystem":"npm","package":"express-openid-connect","purl":"pkg:npm/express-openid-connect","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.3.0","fixed":"2.5.2"}],"vendor":"auth0","product":"express_openid_connect","cpe":"cpe:2.3:a:auth0:express_openid_connect:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7rg2-qxmf-hhx9","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/auth0/express-openid-connect/commit/5ab67ff2bd84f76674066b5e129b43ab5f2f430f","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/auth0/express-openid-connect/releases/tag/v2.5.2","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41246","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/auth0/express-openid-connect","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41246","url":"https://www.cve.org/CVERecord?id=CVE-2021-41246","licence":"CVE Terms of Use","modified":"2024-08-04T03:08:31.551Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7rg2-qxmf-hhx9","url":"https://github.com/advisories/GHSA-7rg2-qxmf-hhx9","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:35.377Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41246","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41246","licence":"Public domain","modified":"2026-06-17T04:08:10.090Z"}],"updatedAt":"2026-11-25T22:58:05.910Z","epss":{"score":0.00924,"percentile":0.61431,"date":"2026-12-01T12:00:22.000Z"}}