All vulnerabilities

PyPI

CVE-2026-115910

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

Severity
Medium 6.8
Published
28 Oct 2026
Last changed
28 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
6.2.0
Exploit chance
0.2% in the next 30 daysHigher than 11% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Insufficient verification of data authenticity (CWE-345)Session fixation (CWE-384)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Also known as
GHSA-h2r5-x5m7-3935
Sources
OSV.dev and GitHub

Description

The generic OpenID Connect backend (OpenIdConnectAuth and every backend built on it) stores the nonce in the shared Association table, not in the user's session. When the ID token comes back, validate_claims only checks that the nonce exists in that table and is not expired. It does not check that the nonce was issued to the browser that is finishing the login.

So the nonce does not do its job. OIDC Core (section 15.5.2) and RFC 9700 (section 4.5) use the nonce to stop authorization code injection: an attacker who gets hold of a victim's unused authorization code should not be able to redeem it in the attacker's own browser. With social-auth-core, the attacker can. They start their own login to get a valid state for their session, then hit the callback with the victim's code and their own state. state passes because it belongs to the attacker's session, and the nonce in the victim's ID token passes because it is in the global table.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
social-auth-corePyPI · osv:PyPI:social-auth-core
  • Every version before 6.2.0

About social-auth-core

Weekly downloads (PyPI)
1,235,959PyPI Stats, 23 Nov 2026

Vulnerabilities in social-auth-core

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
0
Known exploited
0
Search the list for social-auth-core

References