Vulnerabilities in pkg:pypi/social-auth-core

PACKAGE
Advisory Identifier: GHSA-526j-582w-7fm9
Advisory Summary

CVE-2026-62322 is a MODERATE (CVSS 6.5) login csrf vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Python Social Auth libraries in the PyPI ecosystem. The issue involves login csrf in line backend (lineoauth2) — missing oauth state validation (incomplete fix of 5.0.0 campaign). Remediation is available by upgrading affected packages to version 5.0.2.

6 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/social-auth-core

6 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/social-auth-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-526j-582w-7fm9 CVE-2026-62322 MODERATE Python Social Auth: Login CSRF in LINE backend (LineOAuth2) — missing OAuth state validation (incomplete fix of 5.0.0 campaign)
GHSA-vqg6-3fw6-j9jg CVE-2026-57179 MODERATE social-auth-core has a Session Fixation issue
GHSA-3c93-f73f-qc9h CVE-2026-57178 HIGH social-auth-core: VK App backend accepts unsigned callback data when auth_key is missing
GHSA-x7qq-23vw-7pfg CVE-2026-57177 MODERATE social-auth-core has Login CSRF via Missing State Parameter in LoginRadius Backend
GHSA-fp7w-m676-w7gc CVE-2026-57176 MODERATE social-auth-core Vulnerable to Account Takeover via Identity Binding Flaw in Vend Backend
GHSA-vq6g-g6c7-5f2j CVE-2026-57175 MODERATE social-auth-core has an Improper Authentication issue

CVE-2026-62322 at a Glance

CVE Identifier CVE-2026-62322
GHSA Identifier GHSA-526j-582w-7fm9
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Python Social Auth
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-62322

To remediate this vulnerability, upgrade all affected Python Social Auth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

social-auth-core fixed: 5.0.2
pip install social-auth-core>=5.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show social-auth-core

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-62322, inspect your installed packages using pip:

pip show social-auth-core

Analyze the terminal output to locate any version of Python Social Auth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.2), your application is affected.

Note: The pip show social-auth-core command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Python Social Auth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Applications using the LINE Login backend are vulnerable to login CSRF / forced authentication. An attacker can start a LINE authorization flow for an account they control and trick a victim into visiting the callback URL with the attacker’s authorization code. Because the LINE backend did not validate the returned OAuth state, the application could accept the forged callback and log the victim in as the attacker-controlled LINE account. If account linking is enabled, the same flaw can allow an attacker to link their LINE identity to a victim’s existing authenticated account, creating a persistent unauthorized login path. ### Patches * https://github.com/python-social-auth/social-core/pull/1829 ### Workarounds Only applications that enable the LINE backend are affected. ### Credits Thanks to Ta Duc Thien and Duc Anh Nguyen for reproting this via GitHub.

CVE-2026-62322 Affected Python Social Auth Versions

1 component(s)
Fixed Versions:
5.0.2
Product / Package Ecosystem Affected Versions Fixed Version
social-auth-core
PyPI
< 5.0.2
5.0.2

References

Frequently Asked Questions

What is CVE-2026-62322?
CVE-2026-62322 is a security vulnerability in Python Social Auth involving Login CSRF in LINE backend (LineOAuth2) — missing OAuth state validation (incomplete fix of 5.0.0 campaign) under CWE-352: Cross-Site Request Forgery (CSRF).
Which Python Social Auth versions are affected?
Affected versions include releases prior to 5.0.2 across affected packages: social-auth-core.
What version fixes CVE-2026-62322?
Upgrading to 5.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is social-auth-core affected?
Yes, social-auth-core is affected in releases prior to 5.0.2. Upgrade your dependency to 5.0.2 or later.
What is the CVSS score of CVE-2026-62322?
CVE-2026-62322 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2026-62322?
CVE-2026-62322 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2026-62322?
Run the dependency tree command: 'pip show social-auth-core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-526j-582w-7fm9",
  "modified" : "2026-10-15T20:09:11Z",
  "published" : "2026-10-15T20:09:11Z",
  "aliases" : [ "CVE-2026-62322" ],
  "summary" : "Python Social Auth: Login CSRF in LINE backend (LineOAuth2) — missing OAuth state validation (incomplete fix of 5.0.0 campaign)",
  "details" : "### Impact\n\nApplications using the LINE Login backend are vulnerable to login CSRF / forced authentication. An attacker can start a LINE authorization flow for an account they control and trick a victim into visiting the callback URL with the attacker’s authorization code. Because the LINE backend did not validate the returned OAuth state, the application could accept the forged callback and log the victim in as the attacker-controlled LINE account.\n\nIf account linking is enabled, the same flaw can allow an attacker to link their LINE identity to a victim’s existing authenticated account, creating a persistent unauthorized login path.\n\n### Patches\n* https://github.com/python-social-auth/social-core/pull/1829\n\n### Workarounds\n  Only applications that enable the LINE backend are affected.\n\n### Credits\n\nThanks to Ta Duc Thien and Duc Anh Nguyen for reproting this via GitHub.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "social-auth-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/python-social-auth/social-core/security/advisories/GHSA-526j-582w-7fm9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/python-social-auth/social-core/pull/1829"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/python-social-auth/social-core/commit/5b3b90d07ebccc1f5b076445b27ea35ec059764b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/python-social-auth/social-core"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/python-social-auth/social-core/releases/tag/5.0.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-15T20:09:11Z",
    "nvd_published_at" : null
  }
}