Session fixation in express-openid-connectGHSA-7rg2-qxmf-hhx9
MEDIUMFix: auth0/express-openid-connect@5ab67ffGHSA-7rg2-qxmf-hhx9 is a medium-severity (CVSS 4.6) CWE-384 vulnerability in express-openid-connect. A fix is available for express-openid-connect — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
express-openid-connectnpmDescription
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | express-openid-connect | ≥ 2.3.0&&< 2.5.2 | 2.5.2npm install express-openid-connect@2.5.2 |
Affected Products
express openid connectauth0Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for express-openid-connect, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update express-openid-connect to 2.5.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-7rg2-qxmf-hhx9 is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Frequently Asked Questions
Is GHSA-7rg2-qxmf-hhx9 in your dependencies?
Find it across npm, including transitive dependencies.