GitHub Advisoryadvisory · PyPI
GHSA-526j-582w-7fm9 Python Social Auth: Login CSRF in LINE backend (LineOAuth2) — missing OAuth state validation (incomplete fix of 5.0.0 campaign)
MEDIUM
Official page ↗
- Aliases
- CVE-2026-62322
- Ecosystem
- PyPI
- Packages
- social-auth-core
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-352
- Reviewed
- 2026-10-15
Affected packages
• PyPI social-auth-core: < 5.0.2 → fixed in 5.0.2
Description
Impact
Applications using the LINE Login backend are vulnerable to login CSRF / forced authentication. An attacker can start a LINE authorization flow for an account they control and trick a victim into visiting the callback URL with the attacker’s authorization code. Because the LINE backend did not validate the returned OAuth state, the application could accept the forged callback and log the victim in as the attacker-controlled LINE account.
If account linking is enabled, the same flaw can allow an attacker to link their LINE identity to a victim’s existing authenticated account, creating a persistent unauthorized login path.
Patches
• https://github.com/python-social-auth/social-core/pull/1829
Workarounds
Only applications that enable the LINE backend are affected.
Credits
Thanks to Ta Duc Thien and Duc Anh Nguyen for reproting this via GitHub.
Related
Alias · CVE (1)
- CVE-2026-62322 Python Social Auth is a social authentication/registration mechanism. vulnerability
Weakness · CWE (1)
- CWE-352 Cross-Site Request Forgery weakness
References
- https://github.com/python-social-auth/social-core/security/advisories/GHSA-526j-582w-7fm9 web
- https://github.com/python-social-auth/social-core/pull/1829 web
- https://github.com/python-social-auth/social-core/commit/5b3b90d07ebccc1f5b076445b27ea35ec059764b web
- https://github.com/python-social-auth/social-core package
- https://github.com/python-social-auth/social-core/releases/tag/5.0.2 web