social-auth-app-django CVE-2025-61783
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl third-party IdP account
-
DeliverySet attacker email to victim's address
-
ExploitAuthenticate via social-app-django
-
ExecutionAuto-associate to victim account
-
ImpactTake over victim's account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication algorithm review
|
| Exploitation Conditions | Exploitation requires that the application's configured third-party authentication provider (OAuth/social IdP) does NOT validate that a user owns the email address they present, or does not enforce unique email addresses. The flaw triggers association by email on login even when the operator has deliberately omitted the associate_by_email pipeline step, so no special target-side configuration is needed to be vulnerable - the defect is in default association behavior of social-auth-app-django versions prior to 5.6.0. The primary LIMITING factor is the upstream provider's email policy: as the vendor notes, many identity services verify email ownership and will not permit setting an arbitrary victim email, which neutralizes the attack. A further limit is that the victim must already have a local account whose email the attacker can replicate at the IdP. |
| Impact | This is a medium-severity authentication-logic flaw (CWE-303) that real-world signals position as a conditional, lower-priority issue rather than an urgent one. The vendor-supplied CVSS 4.0 vector (CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N) scores 6.3 and correctly captures the key tension: although the vector is network-reachable and requires no privileges or user interaction on the target application (PR:N/UI:N), the High attack complexity (AC:H) reflects that exploitation depends entirely on a specific environmental precondition - a third-party identity provider that fails to validate or enforce uniqueness of email addresses. The EPSS score of 0.42% (35th percentile) is low and consistent with this conditional nature. There is no CISA KEV listing and no public exploit code in the provided data, so exploitation status is: no public exploit identified at time of analysis. The signals are internally consistent - low EPSS, no KEV, no POC, and AC:H all point to the same conclusion that this is a real but situational weakness, not a mass-exploitation threat. One caveat: the input provides only a CVSS 4.0 vector and no SSVC decision data, so automatable/technical-impact determinations cannot be cross-referenced. The practical risk is almost entirely gated by the configured upstream authentication provider's email policy. |
| Exploit ScenarioDerived | An attacker registers or controls an account at a third-party identity provider (e.g., a social/OAuth service) that does not verify email ownership, and sets that account's email to match a victim's existing email in the target Django application. When the attacker authenticates through social-auth-app-django, the library associates their social identity with the victim's existing account by email - even though the operator never enabled the associate_by_email pipeline - granting the attacker access to the victim's account. No public exploit code is identified, and High attack complexity applies because success requires an upstream provider with weak email validation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
In social-auth-app-django versions prior to 5.6.0, a social login can be silently associated with a pre-existing local Django account by matching the email address supplied by the third-party identity provider, even when the operator has deliberately omitted the associate_by_email pipeline step. An attacker who can register at an identity provider using a victim's email address - or who controls a provider that does not enforce verified, unique emails - can therefore be logged into the victim's local account (CWE-303, incorrect authentication logic). The assessed vector is CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N (high confidentiality and integrity impact, unauthenticated per PR:N in the provided vector), but real-world conditions are narrow: the upstream IdP must not validate email ownership or uniqueness, and the victim must already hold a local account with that email. No public exploit code or confirmed active exploitation was identified, and EPSS is low at 0.42% (35th percentile), so this is a conditional, medium-priority authentication-logic flaw rather than an urgent one; vendor-released patch 5.6.0 is available.
RemediationAI
Upgrade to the vendor-released patch version 5.6.0: run pip install --upgrade social-auth-app-django==5.6.0 (or bump the pin in your requirements/lockfile and redeploy), which applies the fix from PR #803 / commit 10c80e2ebabeccd4e9c84ad0e16e1db74148ed4c as documented in the GitHub security advisory GHSA-wv4w-6qv2-qqfg. If immediate upgrade is not possible, the most effective compensating control is at the identity-provider boundary, as the vendor notes: confirm that every configured social login backend only issues email addresses that are verified for ownership and unique, since the attack collapses when the IdP refuses to let a user claim an arbitrary victim email - this requires auditing each provider's tenant/application settings and has the trade-off that providers which do not expose or enforce verification (or that allow shared/alias addresses) must be removed from the allowed backends, potentially blocking some legitimate users. Additional hardening that survives until patching: remove or disable social backends whose email claims are not trustworthy; enforce a custom pipeline step that rejects identities lacking a verified-email assertion before any user association occurs (note this can lock out legitimate users at providers that do not send a verification flag); and require email confirmation or MFA-like re-verification before a newly linked social identity can act on an existing local account, at the cost of added login friction. Keep the package's core and Django app versions aligned when upgrading to avoid pipeline/storage API mismatches, and monitor for the AuthAlreadyAssociated exception as an indicator that the new refusal behavior is triggering on legitimate logins that previously succeeded silently.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Python Social Auth's Django integration (package social-auth-app-django, module social_django) implements the storage layer and pipeline used by social-core to turn an external OAuth/OIDC/social identity into a Django user. The defect is CWE-303 (Incorrect Implementation of Authentication Algorithm): the account-resolution logic in social_django/storage.py treated the email supplied by the provider as a trusted account-linking key. When create_user/lookup encountered an existing user or an IntegrityError on the user model's unique constraints, the code fell back to fetching an existing user record by email rather than refusing the association - effectively performing an email-based account association regardless of whether the operator had included the associate_by_email pipeline step that is supposed to make this behavior explicit and opt-in. The upstream fix (PR #803, commit 10c80e2ebabeccd4e9c84ad0e16e1db74148ed4c) removes that email-based fallback, rewrites the exception path to raise social_core.exceptions.AuthAlreadyAssociated when a matching user already exists, and keeps the Django write transaction intact by wrapping the create in router.db_for_write(...)/atomic handling so a failed create does not poison the surrounding transaction; tests were updated to assert AuthAlreadyAssociated instead of leaking IntegrityError or silently returning the pre-existing user. The trust boundary that matters is the identity provider's email claim: the library previously assumed the provider's email was authoritative and unique, which is only safe for IdPs that verify ownership and enforce uniqueness.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Network-reachable with no target-side privileges or interaction (PR:N/UI:N), but AC:H because success depends on an upstream provider that fails to validate email ownership; successful account takeover grants full read/write to the victim account (C:H/I:H).
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
Python Social Auth is a social authentication/registration mechanism. In versions prior to 5.6.0, upon authentication, the user could be associated by e-mail even if the associate_by_email pipeline was not included. This could lead to account compromise when a third-party authentication service does not validate provided e-mail addresses or doesn't require unique e-mail addresses. Version 5.6.0 contains a patch. As a workaround, review the authentication service policy on e-mail addresses; many will not allow exploiting this vulnerability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
NVD
CVE.org
EPSS
GitHub
Exploit-DB