Cross-site Request Forgery (CSRF) Affecting social-auth-core package, versions [,5.0.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-SOCIALAUTHCORE-21201878
  • published18 Oct 2026
  • disclosed15 Oct 2026
  • creditTa Duc Thien, Duc Anh Nguyen

Introduced: 15 Oct 2026

NewCVE-2026-62322  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade social-auth-core to version 5.0.2 or higher.

Overview

social-auth-core is a package that makes Python social authentication simple.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the auth_complete method in social_core/backends/line.py (the LINE OAuth2 backend), which does not call validate_state() before exchanging the authorization code for an access token. An attacker can perform a login CSRF attack by tricking a victim into completing an OAuth flow with an attacker-controlled authorization code, potentially associating the victim's account with the attacker's identity.

CVSS Base Scores

version 4.0
version 3.1