Skip to content
Threat Feed
high advisory

Authentication Bypass in Laravel Socialite Facebook Provider

An authentication bypass vulnerability in Laravel Socialite's Facebook provider allows attackers to replay valid OIDC tokens due to missing nonce validation.

CVE search metadata

CVE search record: CVE-2026-73683. Severity: high. CVSS: 8.1. KEV: no. Product: Socialite. Brief: Authentication Bypass in Laravel Socialite Facebook Provider. Brief link: https://feed.craftedsignal.io/briefs/2026-08-laravel-socialite-auth-bypass/

Laravel Socialite's Facebook provider contains an authentication bypass vulnerability, identified as CVE-2026-73683, stemming from a lack of nonce claim validation in the getUserByOIDCToken() function within FacebookProvider.php. OpenID Connect (OIDC) relies on the nonce claim to bind an ID token to a specific client session, preventing replay attacks. Because the implementation fails to perform this comparison, an attacker who obtains a valid, unexpired id_token issued for the same Facebook App ID can submit the token to the application's userFromToken() endpoint. The application performs successful signature, audience, and issuer validation but fails to verify session-bound uniqueness, allowing the attacker to masquerade as the legitimate user. This flaw significantly impacts services relying on Laravel Socialite for OAuth and OIDC authentication, potentially leading to widespread account takeover.

Attack Chain

  1. Attacker monitors network traffic or intercepts OIDC id_tokens issued for a target Facebook App ID.
  2. Attacker successfully captures a valid, unexpired id_token intended for a victim session.
  3. Attacker identifies the target application's userFromToken() OIDC callback endpoint.
  4. Attacker crafts a malicious HTTP request to the target endpoint, inserting the captured id_token into the token parameter.
  5. The Laravel Socialite FacebookProvider backend receives the request and executes getUserByOIDCToken().
  6. The backend performs standard cryptographic validation (signature, iss, aud), which succeeds.
  7. The backend neglects to perform nonce validation, treats the replayed token as a legitimate new authentication request.
  8. The application establishes a session for the attacker, granting access to the victim's account.

Impact

Successful exploitation allows unauthenticated attackers to hijack user sessions without requiring victim credentials or interaction. This vulnerability affects any application utilizing the Laravel Socialite Facebook provider, creating a high risk of unauthorized access, sensitive data exposure, and account takeover across impacted sectors.

Recommendation

  • Immediately audit applications using Laravel Socialite to determine if the Facebook provider is active and if the environment is susceptible to OIDC token replay.
  • Apply vendor-provided patches or update Laravel Socialite to a version that enforces nonce validation in FacebookProvider.php as indicated by CVE-2026-73683.
  • Implement additional server-side session controls and log monitoring for the userFromToken() endpoint to identify spikes in token submission originating from unexpected sources or mismatched session parameters.

Immediate actions

Patch CVE-2026-73683

IT Operations 48h

Threat Hunt

Monitor userFromToken endpoint for high frequency or anomalous token submission patterns

T1550.002 medium medium confidence hunt now

Data: Web server logs