All reports
Medium

Session fixation in express-openid-connect

Affected versions

Affected versions
>= 2.3.0, < 2.5.2
Fixed version
2.5.2

Exploitation

CVE-2021-41246

Probability of exploitation in the next 30 days: 0.92%

FIRST EPSS · 2026-11-20

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.

Links