GHSA-7fjv-25q9-2w88: Laravel/socialite State Guessing Vulnerability Vulnerability

MODERATE
Published
Advisory Summary

GHSA-7fjv-25q9-2w88 is a MODERATE state guessing vulnerability vulnerability (General Security Weakness) affecting Laravel/socialite libraries in the Packagist ecosystem. The issue involves state guessing vulnerability in laravel/socialite. Remediation is available by upgrading affected packages to version 2.0.10.

GHSA-7fjv-25q9-2w88 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7fjv-25q9-2w88
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Laravel/socialite
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-7fjv-25q9-2w88

To remediate this vulnerability, upgrade all affected Laravel/socialite dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

laravel/socialite fixed: 2.0.10
Upgrade laravel/socialite to 2.0.10
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for laravel/socialite

How to Check if You Are Affected

To determine whether your application is affected by GHSA-7fjv-25q9-2w88, inspect your project dependencies for Laravel/socialite:

inspect dependencies for laravel/socialite

Analyze the terminal output to locate any version of Laravel/socialite in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.10), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Laravel/socialite, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

laravel/socialite versions prior to 2.0.10 are susceptible to a security vulnerability related to state guessing during OAuth authentication. This vulnerability could potentially lead to session hijacking, allowing attackers to compromise user sessions. The issue has been addressed and fixed in version 2.0.10.

GHSA-7fjv-25q9-2w88 Affected Laravel/socialite Versions

1 component(s)
Fixed Versions:
2.0.10
Product / Package Ecosystem Affected Versions Fixed Version
laravel/socialite
Packagist
≥ 1.0.0
< 2.0.10
2.0.10

References

Frequently Asked Questions

What is GHSA-7fjv-25q9-2w88?
GHSA-7fjv-25q9-2w88 is a security vulnerability in Laravel/socialite involving State Guessing Vulnerability in laravel/socialite under General Security Weakness.
Which Laravel/socialite versions are affected?
Affected versions include releases prior to 2.0.10 across affected packages: laravel/socialite.
What version fixes GHSA-7fjv-25q9-2w88?
Upgrading to 2.0.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is laravel/socialite affected?
Yes, laravel/socialite is affected in releases prior to 2.0.10. Upgrade your dependency to 2.0.10 or later.
What CWE is associated with GHSA-7fjv-25q9-2w88?
GHSA-7fjv-25q9-2w88 is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-7fjv-25q9-2w88?
Run the dependency tree command: 'inspect dependencies for laravel/socialite'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7fjv-25q9-2w88",
  "modified" : "2024-05-15T22:26:19Z",
  "published" : "2024-05-15T22:26:19Z",
  "aliases" : [ ],
  "summary" : "State Guessing Vulnerability in laravel/socialite",
  "details" : "laravel/socialite versions prior to 2.0.10 are susceptible to a security vulnerability related to state guessing during OAuth authentication. This vulnerability could potentially lead to session hijacking, allowing attackers to compromise user sessions. The issue has been addressed and fixed in version 2.0.10.\n\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "laravel/socialite"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "2.0.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/laravel/socialite/pull/93"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laravel/socialite/commit/3d9ed9f4703de82a89541e2458f64de348a60a99"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/socialite/2015-08-03.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/laravel/socialite"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T22:26:19Z",
    "nvd_published_at" : null
  }
}