Skip to content
OpenAdvisories
Medium · 6.8 CVE-2026-115910 EUVD-2026-109993GHSA-h2r5-x5m7-3935

Python Social Auth: OpenID Connect nonce is not bound to the browser session, so a stolen authorization code logs the attacker in as the victim

Published Oct 26, 2026 · Updated Oct 31, 2026 · Assigned by GitHub_M

Description

Python Social Auth is a social authentication and registration mechanism. Prior to 6.2.0, OpenIdConnectAuth in social_core/backends/open_id_connect.py uses get_and_store_nonce to place the OpenID Connect nonce in a shared OpenIdConnectAssociation table, and get_nonce and validate_claims verify only that the nonce exists and has not expired rather than binding it to the browser session and OAuth state that initiated the login. An attacker who obtains a victim's unused authorization code can start a separate login to obtain valid state for the attacker's browser, submit the victim's code with that state, and pass nonce validation because the victim nonce is globally available. With DEFAULT_USE_PKCE disabled in the default OpenIdConnectAuth configuration, the attacker can be logged in as the victim. This issue is fixed in version 6.2.0.

Affected products

VendorProductAffectedFixed
python-social-auth social-core < 6.2.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 social-auth-core No fix yet —
Debian 13 social-auth-core No fix yet —
Debian 12 social-auth-core No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 social-auth-core No fix yet —
Ubuntu 26.04 LTS social-auth-core No fix yet —
Ubuntu 24.04 LTS social-auth-core No fix yet —
Ubuntu 22.04 LTS social-auth-core No fix yet —
Ubuntu 20.04 LTS social-auth-core No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-social-auth-core 7.2.0-1.1 openSUSE-SU-2026:12558-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI social-auth-core < 6.2.0 6.2.0 GHSA-h2r5-x5m7-3935

Advisories 1

References