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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (2nd 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-20158374
  • published27 Sept 2026
  • disclosed24 Sept 2026
  • creditUnknown

Introduced: 24 Sep 2026

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

How to fix?

Upgrade social-auth-core to version 5.0.0 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 LoginRadiusAuth backend in social_core/backends/loginradius.py, which sets REDIRECT_STATE = False and STATE_PARAMETER = False, disabling OAuth2 state parameter validation entirely. An attacker can perform a login CSRF attack by tricking a victim into completing an OAuth2 flow that the attacker initiated, allowing the attacker to associate the victim's browser session with an account the attacker controls.

CVSS Base Scores

version 4.0
version 3.1