# GHSA-h97c-qp24-439v: Insecure State Generation in laravel/socialite

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-15T22:27:23.000Z
- Modified: 2024-11-29T05:41:25.637Z
- Weaknesses: CWE-331

## Description

laravel/socialite versions prior to 2.0.9 are found to have an insecure state generation mechanism, potentially exposing the OAuth authentication process to security risks. The issue has been addressed in version 2.0.9 by ensuring that the state is generated using a truly random approach, enhancing the security of the OAuth flow.

(As written by GitHub Advisory Database.)

## Affected

- laravel/socialite (Packagist): from 1.0.0 before 2.0.9

## References

- <https://github.com/laravel/socialite/pull/91> (web)
- <https://github.com/laravel/socialite/commit/2ef13bae1484c44ede68e05486bce76cc0fa8dd8> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/socialite/2015-07-23.yaml> (web)
- <https://github.com/laravel/socialite> (package)

## Sources

- GitHub Advisory Database: [GHSA-h97c-qp24-439v](https://github.com/advisories/GHSA-h97c-qp24-439v), CC-BY-4.0, modified 2024-11-29

---

Page: https://cve.day/GHSA-h97c-qp24-439v · Whole record: https://cve.day/GHSA-h97c-qp24-439v.json · Rebuilt by cve.day 2026-11-25T22:56:32.285Z
