---
id: "CVE-2026-126775"
page: "https://infrastack.ai/live/CVE-2026-126775"
kind: "vulnerability"
aliases: ["CVE-2026-126775"]
title: "social-auth-core: SAML login CSRF lets attackers sign victims into their account"
severity: "medium"
cvss: 4.2
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["django", "flask", "package", "python", "saml", "social-auth"]
not_affected_if: ["no-saml-backend", "non-python"]
published_at: "2026-11-11T19:17:38+00:00"
first_seen_at: "2026-11-11T19:28:46+00:00"
updated_at: "2026-11-11T19:30:37+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126775", "first_seen_at": "2026-11-11T19:28:46+00:00"}]
exploit_sources: []
---

# social-auth-core: SAML login CSRF lets attackers sign victims into their account

Link for people: https://infrastack.ai/live/CVE-2026-126775 (this .md is for agents)

social-auth-core is a Python library that adds social and SSO logins to web apps. In its SAML backend, the unsigned RelayState parameter can restore a session, so an attacker can sign a victim into the attacker's own account and capture data the victim enters.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed version with `pip show social-auth-core`
- Look for `social-auth-core` in `requirements.txt`, `poetry.lock` or `Pipfile.lock` and see whether it is version 4.7.0 or later and before 7.0.0
- Confirm whether your app uses the SAML backend (`social_core.backends.saml`)

## Fix

- `social-auth-core` `7.0.0`
- Release notes and patch are linked from the advisory; the sources do not give further steps

## Timeline

- 2026-11-11T19:28:46+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126775

## Documents

- [advisory] Vendor advisory: github.com https://github.com/python-social-auth/social-core/security/advisories/GHSA-4pv2-52v7-vrfx
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/social-auth-core-4.7.0-before-7.0.0-login-csrf-via-saml-relaystate
- [fix] Patch: github.com https://github.com/python-social-auth/social-core/commit/7d9da571fc9ce8bd0003ccfcbfa8ed98c18bb640
- [fix] Release notes: github.com https://github.com/python-social-auth/social-core/releases/tag/7.0.0

## From the sources

Social-auth-core 4.7.0 before 7.0.0 contains a login cross-site request forgery vulnerability in the SAML backend that restores sessions named in the unsigned RelayState parameter. Attackers can deliver their own valid IdP response and RelayState to a victim's browser via an auto-submitting form, signing the victim into the attacker's account to capture entered data.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
