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


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th 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-22565993
  • published16 Nov 2026
  • disclosed11 Nov 2026
  • creditZachariah Mithani

Introduced: 11 Nov 2026

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

How to fix?

Upgrade social-auth-core to version 7.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 SAML backend, which restores sessions named in the unsigned RelayState parameter rather than correlating the callback with the initiating browser's session. An attacker with an account at a configured trusted identity provider can deliver their own valid IdP response and a crafted RelayState to a victim's browser via an auto-submitting form, signing the victim into the attacker's account. The victim may then enter information or perform actions under the attacker's identity.

Workaround

Disable SAML authentication until the patched core and a compatible framework integration can be deployed. Disabling authenticated account association alone does not address the anonymous-browser login CSRF.

CVSS Base Scores

version 4.0
version 3.1