Skip to main content

social-auth-app-django CVE-2025-61783

MEDIUM
Incorrect Implementation of Authentication Algorithm (CWE-303)
2025-10-09 security-advisories@github.com
6.3
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control third-party IdP account
  2. Delivery
    Set attacker email to victim's address
  3. Exploit
    Authenticate via social-app-django
  4. Execution
    Auto-associate to victim account
  5. Impact
    Take 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi social-auth-app-django fix: 5.6.0

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

Vendor (github) PRIMARY 6.3 MEDIUM
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
vuln.today AI 7.4 HIGH

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 4.8 MEDIUM

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
popular Django social-auth library, but scoped to Django web applications
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy