Vulnerability · Published Dec 9, 2021 · Assigned by GitHub_M
CVE-2021-41246Session fixation in express-openid-connect
Medium 4.6
In plain English
A medium-severity session fixation in express-openid-connect from auth0. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | express-openid-connect | 2.5.2 | GHSA-7rg2-qxmf-hhx9 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| auth0 | express-openid-connect | >= 2.3.0, < 2.5.2 |
Weakness: CWE-384 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
References
- https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7rg2-qxmf-hhx9 x_refsource_CONFIRM
- https://github.com/auth0/express-openid-connect/commit/5ab67ff2bd84f76674066b5e129b43ab5f2f430f x_refsource_MISC
- https://github.com/auth0/express-openid-connect/releases/tag/v2.5.2 x_refsource_MISC