4.9medium
social-auth-app-django Improper Handling of Case Sensitivity vulnerability
- Severity
- 4.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.68% (higher than 47% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2gr8-3wc7-xhj3PYSEC-2026-1931
Description
Python Social Auth is a social authentication/registration mechanism. Prior to version 5.4.1, 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. This issue has been addressed by a fix released in version 5.4.1. An immediate workaround would be to change collation of the affected field.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| python-social-auth social-app-django | < 5.4.1, before 5.4.1 | CVE List |
| social-auth-app-django (PyPI) | before 5.4.1 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N |
| GitHub | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N |
| PyPA Advisory Database | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N |
Classification
What each source says
CVE List
Python Social Auth is a social authentication/registration mechanism. Prior to version 5.4.1, 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. This issue has been addressed by a fix released in version 5.4.1. An immediate workaround would be to change collation of the affected field.
GitHub Advisory Database
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/.
NVD (es)
Python Social Auth es un mecanismo de autenticación/registro social. Antes de la versión 5.4.1, debido a la intercalación predeterminada que no distingue entre mayúsculas y minúsculas en las bases de datos MySQL o MariaDB, los ID de usuario de autenticación de terceros no distinguen entre mayúsculas y minúsculas y podrían hacer que coincidan diferentes ID. Este problema se solucionó mediante una solución publicada en la versión 5.4.1. Un workaround inmediata sería cambiar la clasificación del campo afectado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-32879 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2gr8-3wc7-xhj3 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-32879 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1931 changed 2026-07-07 | CC-BY-4.0 |