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

Not scored Published

Insecure random state generation in Laravel Socialite allows attackers to bypass OAuth CSRF protections, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-h97c-qp24-439v?

GHSA-h97c-qp24-439v is a vulnerability in laravel/socialite, published on 15 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Which versions are affected by GHSA-h97c-qp24-439v?

2 open source packages ship an affected version, including laravel/socialite.

PackageAffectedFixed in
laravel/socialite PackagistFrom 1.0.02.0.9
laravel/socialite PackagistFrom 1.0.02.0.9

How do I fix GHSA-h97c-qp24-439v?

Upgrade laravel/socialite to 2.0.9 or later.

Is GHSA-h97c-qp24-439v being exploited?

There is no known exploitation of GHSA-h97c-qp24-439v in the wild and no public exploit code.

Sources

Is GHSA-h97c-qp24-439v in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free