Skip to content

Session fixation in express-openid-connect

Moderate severity GitHub Reviewed Published Dec 9, 2021 in auth0/express-openid-connect • Updated Feb 1, 2023

Package

npm express-openid-connect (npm)

Affected versions

>= 2.3.0, < 2.5.2

Patched versions

2.5.2

Description

Overview

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

Am I affected?

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

How to fix that?

Upgrade to version >= 2.5.2.

Will this update impact my users?

The fix provided in patch will not affect your users.

References

Published by the National Vulnerability Database Dec 9, 2021
Reviewed Dec 9, 2021
Published to the GitHub Advisory Database Dec 9, 2021
Last updated Feb 1, 2023

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

EPSS score

0.245%
(65th percentile)

Weaknesses

CVE ID

CVE-2021-41246

GHSA ID

GHSA-7rg2-qxmf-hhx9
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.