---
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
  - CWE-358
vendor: python-social-auth
product: social-core
affected:
  - social-core < 5.0.2
patched:
  - social-auth-core 5.0.2
published: '2026-10-15'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T20:02:37.630'
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'
  - url: 'https://github.com/python-social-auth/social-core'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-62322.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-62322'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2553757'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-62322'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-62322'
tags:
  - nvd
  - cve.org
  - ghsa
  - pip
  - osv
  - csaf
  - vex
  - red-hat
epss: 0.00153
epssPercentile: 0.04425
aliases:
  - GHSA-526j-582w-7fm9
ecosystem: pip
ingestedAt: '2026-10-15T19:25:46.437Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-28T19:54:25.948182Z'
---

## 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

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Ansible Automation Platform 2 · no fix planned: Red Hat Ansible Automation Platform 2 · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-62322.json)
