{"id":2420,"cve":"CVE-2026-57179","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-57179\/","cwe":"CWE-384","cwe_number":384,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/384","cvss_score":4.2,"published":"2026-09-24","owasp":"A07 Identification and Authentication Failures","odc":"Interface","cdc":"Incorrect Check","category":"Authentication, Authorization, and Session Management","subcategory":"Session Management Issues","scope":"Remote","impact":"Unauthorized Access","summary":"Partial token can be reused across browsers, letting attackers hijack user sessions.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-57179\/","description":"Python Social Auth is a social authentication\/registration mechanism. Prior to version 5.0.0, the partial-pipeline resume mechanism accepted `partial_token` as a bearer credential without binding it to the browser session that created it. Applications using resumable partial pipeline steps could allow an attacker to start an authentication flow, obtain a valid partial token and verification data, and cause a victim's browser to resume that attacker-controlled flow. This could authenticate the victim's browser as the attacker's account. The issue affects applications using partial pipeline steps such as `mail_validation` or custom steps decorated with `@partial`. The issue has been fixed in version 5.0.0 by binding partial pipeline resumes to the originating browser session.","solution":"Upgrade\u202fpython\u2011social\u2011auth\u202fto\u202fversion\u202f5.0.0\u202for newer.","affected_component":"Python Social Auth","fixed_by_upgrading":true,"vulnerable_code":"from social_core.backends.google import GoogleOAuth2\nfrom social_core.pipeline.partial import partial\n\ndef start_auth(request):\n    \"\"\"Start OAuth flow and store partial token.\"\"\"\n    backend = GoogleOAuth2()\n    # VULNERABLE: accepts partial_token without binding to session\n    return backend.auth_url()  # returns redirect with ?partial_token=...\n\ndef resume_partial(request):\n    \"\"\"Resume a partial pipeline step using the token from the query string.\"\"\"\n    token = request.GET.get('partial_token')\n    if not token:\n        raise ValueError(\"Missing token\")\n    # The original library would retrieve the partial pipeline data solely by token\n    partial_data = request.session.get('partial_pipeline_data', {})\n    if token not in partial_data:\n        raise ValueError(\"Invalid token\")\n    # Continue processing using attacker\u2011controlled token\n    request.session['partial_pipeline_data'] = partial_data[token]\n    # ... continue pipeline ...\n    return \"Resumed\"\n","patched_code":"from social_core.backends.google import GoogleOAuth2\nfrom social_core.pipeline.partial import partial\n\ndef start_auth(request):\n    \"\"\"Start OAuth flow and store partial token bound to session.\"\"\"\n    backend = GoogleOAuth2()\n    return backend.auth_url()\n\ndef resume_partial(request):\n    \"\"\"Resume a partial pipeline step only if token matches session binding.\"\"\"\n    token = request.GET.get('partial_token')\n    if not token:\n        raise ValueError(\"Missing token\")\n    # FIX: bind token to the originating browser session\n    bound_token = request.session.get('partial_token')\n    if bound_token != token:\n        raise ValueError(\"Token does not match session\")\n    partial_data = request.session.get('partial_pipeline_data', {})\n    if token not in partial_data:\n        raise ValueError(\"Invalid token\")\n    request.session['partial_pipeline_data'] = partial_data[token]\n    return \"Resumed\"\n","payload_needed":true,"payload":null,"payload_status":"model_refused","published_fix":[{"repository":"python-social-auth\/social-core","commit_url":"https:\/\/github.com\/python-social-auth\/social-core\/commit\/0418782454ac7bbc6a9230ea21f7f5066fe89686","commit_subject":"fix!: bind partial pipeline resumes to sessions","units":[{"file":"social_core\/actions.py","function":null},{"file":"social_core\/actions.py","function":"do_complete"},{"file":"social_core\/actions.py","function":"do_disconnect"},{"file":"social_core\/pipeline\/mail.py","function":null},{"file":"social_core\/pipeline\/mail.py","function":"mail_validation"},{"file":"social_core\/pipeline\/partial.py","function":null},{"file":"social_core\/pipeline\/partial.py","function":"partial_step"},{"file":"social_core\/strategy.py","function":null},{"file":"social_core\/strategy.py","function":"BaseStrategy.clean_partial_pipeline"},{"file":"social_core\/utils.py","function":null},{"file":"social_core\/utils.py","function":"partial_pipeline_data"}]}],"references":null}