Advisory

PYSEC-2026-1931

Also known as: CVE-2024-32879, GHSA-2gr8-3wc7-xhj3

Summary

social-auth-app-django affected by Improper Handling of Case Sensitivity

Details

Impact
Due to default case-insensitive collation in MySQL or MariaDB databases, third-party authentication user IDs are not case-sensitive and could cause different IDs to match.

Patches
This issue has been addressed by https://github.com/python-social-auth/social-app-django/pull/566 and fix released in 5.4.1.

Workarounds
An immediate workaround would be to change collation of the affected field:

ALTER TABLE `social_auth_usersocialauth` MODIFY `uid` varchar(255) COLLATE `utf8_bin`;

References
This issue was discovered by folks at https://opencraft.com/.

Severity

Medium Basis: CVSS v3 score 4.9, vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N

Dates

Published
2026-07-07 11:45 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

social-auth-app-django

PyPI · All systems

Affected

  • introduced 0, fixed 5.4.1 (ecosystem)

Fixed versions

5.4.1

Fix

  • Fixed version 5.4.1
    pip install --upgrade social-auth-app-django==5.4.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences