---
id: CVE-2026-62322
title: Python Social Auth is a social authentication/registration mechanism
summary: >-
  Python Social Auth is a social authentication/registration mechanism. Prior to
  5.0.2, the LINE backend exchanges an authorization code without validating the
  returned OAuth state. An attacker can begin authorization for an
  attacker-contr…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'
cwe:
  - CWE-352
vendor: python-social-auth
product: social-core
affected:
  - social-core < 5.0.2
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:17:42.213'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-62322'
references:
  - url: >-
      https://github.com/python-social-auth/social-core/commit/5b3b90d07ebccc1f5b076445b27ea35ec059764b
    label: security-advisories@github.com
  - url: 'https://github.com/python-social-auth/social-core/pull/1829'
    label: security-advisories@github.com
  - url: 'https://github.com/python-social-auth/social-core/releases/tag/5.0.2'
    label: security-advisories@github.com
  - url: >-
      https://github.com/python-social-auth/social-core/security/advisories/GHSA-526j-582w-7fm9
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-526j-582w-7fm9'
tags:
  - nvd
  - cve.org
  - ghsa
  - pip
ingestedAt: '2026-10-15T19:25:46.437Z'
aliases:
  - GHSA-526j-582w-7fm9
ecosystem: pip
patched:
  - social-auth-core 5.0.2
---

## Overview

Python Social Auth is a social authentication/registration mechanism. Prior to 5.0.2, the LINE backend exchanges an authorization code without validating the returned OAuth state. An attacker can begin authorization for an attacker-controlled LINE account and induce a victim to visit the resulting callback URL, causing the application to log the victim into the attacker's account. When account linking is enabled, the same missing validation can link the attacker's LINE identity to the victim's existing account and create a persistent unauthorized login path. Only applications with the LINE backend enabled are affected. This issue is fixed in version 5.0.2.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-62322)

Affected packages:

- `social-auth-core < 5.0.2`

Patched in:

- `social-auth-core 5.0.2`

Source: https://github.com/advisories/GHSA-526j-582w-7fm9
