High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-41246
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:57 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-41246
Complete source record
{
"id": "3d04ab06223ebee1d10602aeaef1088522006e128e97bf946143c148295894d7",
"url": "https://osv.dev/vulnerability/CVE-2021-41246",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-41246",
"summary": "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.",
"evidence": "osv:CVE-2021-41246",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-41246",
"aliases": [
"CVE-2021-41246",
"GHSA-7rg2-qxmf-hhx9"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/auth0/express-openid-connect",
"type": "GIT",
"events": [
{
"introduced": "5566d1a941fc2a1487c242204c07e5805c4913f7"
},
{
"fixed": "c2557569e62b6136b249aa6b6fce41252af7dc5c"
},
{
"fixed": "5ab67ff2bd84f76674066b5e129b43ab5f2f430f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:auth0:express_openid_connect:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.5.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "5ab67ff2bd84f76674066b5e129b43ab5f2f430f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "c2557569e62b6136b249aa6b6fce41252af7dc5c"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.5.2"
}
]
}
}
],
"versions": [
"v2.5.1",
"v2.5.0",
"v2.4.0",
"v2.3.1",
"v2.3.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41246.json"
}
}
],
"modified": "2026-10-20T10:54:58.719484473Z",
"provider": "osv",
"references": [
"https://github.com/auth0/express-openid-connect/releases/tag/v2.5.2",
"https://github.com/auth0/express-openid-connect/security/advisories/GHSA-7rg2-qxmf-hhx9",
"https://github.com/auth0/express-openid-connect/commit/5ab67ff2bd84f76674066b5e129b43ab5f2f430f"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-41246",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386611,
"published_at": "2021-12-09T16:15:08.383+00:00"
}