{"id":"CVE-2021-41246","aliases":["EUVD-2021-2474","GHSA-7rg2-qxmf-hhx9"],"status":"published","title":"Session fixation in express-openid-connect","description":"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.","severity":{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00924,"percentile":0.60663,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-384"],"published":"2021-12-09T15:55:10Z","modified":"2026-10-20T10:54:58Z","fixes":[{"ecosystem":"npm","package":"express-openid-connect","fixed_in":["2.5.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"express-openid-connect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3.0"},{"fixed":"2.5.2"}]}]},{"source":"osv","ecosystem":"npm","package":"express-openid-connect","ranges":[{"type":"SEMVER","events":[{"introduced":"2.3.0"},{"fixed":"2.5.2"}]}]}],"products":[{"vendor":"auth0","product":"express-openid-connect"},{"vendor":"auth0","product":"express_openid_connect"}],"references":[{"url":"https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7rg2-qxmf-hhx9","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/auth0/express-openid-connect/commit/5ab67ff2bd84f76674066b5e129b43ab5f2f430f","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/auth0/express-openid-connect/releases/tag/v2.5.2","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41246","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-7rg2-qxmf-hhx9"},{"url":"https://github.com/auth0/express-openid-connect","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-41246","title":"Session fixation in express-openid-connect","description":"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.","status":"published","published":"2021-12-09T15:55:10Z","modified":"2024-08-04T03:08:31.551Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-384"],"updated_at":"2026-11-02T14:32:59.105382Z"}],"euvd":[{"id":"EUVD-2021-2474","description":"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.","status":"published","published":"2021-12-09T15:55:10Z","modified":"2024-08-04T03:08:31Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T03:24:18.226903Z"}],"ghsa":[{"id":"GHSA-7rg2-qxmf-hhx9","title":"Session fixation in express-openid-connect","description":"### 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 `\u003e= 2.5.2`.\n\n### Will this update impact my users?\nThe fix provided in patch will not affect your users.","status":"published","published":"2021-12-09T19:08:58Z","modified":"2023-02-01T05:06:48Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-384"],"updated_at":"2026-11-02T14:36:39.76883Z"}],"nvd":[{"id":"CVE-2021-41246","description":"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.","status":"published","published":"2021-12-09T16:15:08.383Z","modified":"2026-06-17T04:08:10.09Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-384"],"updated_at":"2026-11-02T14:07:02.189991Z"}],"osv":[{"id":"CVE-2021-41246","description":"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.","status":"published","published":"2021-12-09T16:15:08.383Z","modified":"2026-10-20T10:54:58.719484473Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:21.557945Z"},{"id":"GHSA-7rg2-qxmf-hhx9","title":"Session fixation in express-openid-connect","description":"### 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 `\u003e= 2.5.2`.\n\n### Will this update impact my users?\nThe fix provided in patch will not affect your users.","status":"published","published":"2021-12-09T19:08:58Z","modified":"2026-07-08T06:28:35.377920672Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-384"],"updated_at":"2026-11-02T15:46:41.349637Z"}]}}
