Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. social-auth-core
  4. ›
  5. CVE-2026-115910

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

October 28, 2026

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. The attacker’s browser is now logged in as the victim.

PKCE would block this, but OpenIdConnectAuth sets DEFAULT_USE_PKCE = False (the OAuth2 base class defaults to True), so the nonce is the only binding in the default setup.

References

  • github.com/advisories/GHSA-h2r5-x5m7-3935
  • github.com/python-social-auth/social-core/commit/c2f2ae4663bef19ee8b07f2cf5a2344f9155d826
  • github.com/python-social-auth/social-core/pull/2141
  • github.com/python-social-auth/social-core/releases/tag/6.2.0
  • github.com/python-social-auth/social-core/security/advisories/GHSA-h2r5-x5m7-3935
  • nvd.nist.gov/vuln/detail/CVE-2026-115910

Code Behaviors & Features

Detect and mitigate CVE-2026-115910 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.2.0

Fixed versions

  • 6.2.0

Solution

Upgrade to version 6.2.0 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity
  • CWE-384: Session Fixation

Source file

pypi/social-auth-core/CVE-2026-115910.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:10 +0000.