Description
Python Social Auth is a social authentication/registration mechanism. Prior to 5.0.2, the LINE backend exchanges an authorization code without validating the returned OAuth state. An attacker can begin authorization for an attacker-controlled LINE account and induce a victim to visit the resulting callback URL, causing the application to log the victim into the attacker's account. When account linking is enabled, the same missing validation can link the attacker's LINE identity to the victim's existing account and create a persistent unauthorized login path. Only applications with the LINE backend enabled are affected. This issue is fixed in version 5.0.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| python-social-auth | social-core | < 5.0.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | social-auth-core | 5.0.2-1 | — |
| Debian 13 | social-auth-core | No fix yet | — |
| Debian 12 | social-auth-core | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | social-auth-core | No fix yet | — |
| Ubuntu 24.04 LTS | social-auth-core | No fix yet | — |
| Ubuntu 22.04 LTS | social-auth-core | No fix yet | — |
| Ubuntu 20.04 LTS | social-auth-core | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | social-auth-core | < 5.0.2 | 5.0.2 | GHSA-526j-582w-7fm9 |
References
- https://github.com/python-social-auth/social-core/security/advisories/GHSA-526j-582w-7fm9
- https://github.com/python-social-auth/social-core/pull/1829
- https://github.com/python-social-auth/social-core/commit/5b3b90d07ebccc1f5b076445b27ea35ec059764b
- https://github.com/python-social-auth/social-core/releases/tag/5.0.2