# CVE-2021-41246: Session fixation in express-openid-connect

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 61% of CVEs (2026-12-01)
- Published: 2021-12-09T15:55:10.000Z
- Modified: 2026-07-08T06:28:35.377Z
- Also known as: GHSA-7rg2-qxmf-hhx9
- Weaknesses: CWE-384
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- auth0 express-openid-connect: >= 2.3.0, < 2.5.2
- express-openid-connect (npm): from 2.3.0 before 2.5.2
- auth0 express_openid_connect: from 2.3.0 before 2.5.2

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7rg2-qxmf-hhx9> (third-party-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2021-41246> (advisory)
- <https://github.com/auth0/express-openid-connect> (package)

## Sources

- CVE List: [CVE-2021-41246](https://www.cve.org/CVERecord?id=CVE-2021-41246), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-7rg2-qxmf-hhx9](https://github.com/advisories/GHSA-7rg2-qxmf-hhx9), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41246](https://nvd.nist.gov/vuln/detail/CVE-2021-41246), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41246 · Whole record: https://cve.day/CVE-2021-41246.json · Rebuilt by cve.day 2026-11-25T22:58:05.910Z
