{"answers":{"affected":"2 open source packages ship an affected version, including express-openid-connect. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-41246 in the wild and no public exploit code.","fix":"Upgrade express-openid-connect to 2.5.2 or later.","what":"CVE-2021-41246 is a medium-severity authentication bypass vulnerability in auth0 express-openid-connect, published on 9 Dec 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-41246 and fix it if it is affected.\n\nWhat it is: CVE-2021-41246 is a medium-severity authentication bypass vulnerability in auth0 express-openid-connect, published on 9 Dec 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-41246 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- express-openid-connect (npm): affected from 2.3.0; fixed in 2.5.2\n- express-openid-connect (npm): affected from 2.3.0; fixed in 2.5.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-41246/ (Markdown: https://insights.sbomify.com/CVE-2021-41246/index.md)","id":"CVE-2021-41246","markdown":"https://insights.sbomify.com/CVE-2021-41246/index.md","name":"CVE-2021-41246","record":{"aliases":["GHSA-7rg2-qxmf-hhx9"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js OpenID Connect middleware","requires_auth":"low_privilege","summary":"Attackers can hijack user sessions by exploiting missing session ID regeneration during login in Express OpenID Connect middleware.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"express_openid_connect","vendor":"auth0"}],"cvss":{"score":4.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-384","name":"Session Fixation"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Session fixation in express-openid-connect","id":"CVE-2021-41246","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"auth_bypass","year":"2021"},"n_packages":2,"n_references":3,"next":{"headline":"incomplete logout in JupyterHub","id":"CVE-2021-41247"},"packages":[{"ecosystem":"npm","fixed":["2.5.2"],"introduced":["2.3.0"],"last_affected":[],"package":"express-openid-connect","purl":null,"source":"GHSA-7rg2-qxmf-hhx9"},{"ecosystem":"npm","fixed":["2.5.2"],"introduced":["2.3.0"],"last_affected":[],"package":"express-openid-connect","purl":"pkg:npm/express-openid-connect","source":"GHSA-7rg2-qxmf-hhx9"}],"prev":{"headline":"Possible Cross-Site Request Forgery in Combodo iTop","id":"CVE-2021-41245"},"products":["express-openid-connect"],"published":"2021-12-09","related":[{"cvss_score":7.5,"headline":"Open Redirect in express-openid-connect","id":"CVE-2022-24794","kev_date_added":null,"published":"2022-03-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["auth0"]},"summary":"Attackers can hijack user sessions by exploiting missing session ID regeneration during login in Express OpenID Connect middleware.","url":"https://insights.sbomify.com/CVE-2021-41246/"}