CVE-2025-68129

6.8 MEDIUM

📋 TL;DR

Auth0-PHP SDK versions 8.0.0 through 8.17.0 improperly validate audience claims in access tokens, allowing ID tokens to be accepted as access tokens. This affects applications using Auth0-PHP SDK directly or through Auth0's Symfony, Laravel, or WordPress integrations. Attackers could potentially bypass authentication or authorization controls.

💻 Affected Systems

Products:
  • Auth0-PHP SDK
  • Auth0/symfony
  • Auth0/laravel-auth0
  • Auth0/wordpress plugin
Versions: Auth0-PHP v8.0.0 to v8.17.0, Auth0/symfony v5.0.0 to v5.5.0, Auth0/laravel-auth0 v7.0.0 to v7.19.0, Auth0/wordpress plugin v5.0.0-BETA0 to v5.4.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Applications must be using affected SDK versions and performing token validation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Authentication bypass leading to unauthorized access to protected resources, privilege escalation, or data exposure.

🟠

Likely Case

Authorization bypass where users access resources they shouldn't, potentially exposing sensitive data or functionality.

🟢

If Mitigated

Limited impact with proper additional validation layers, but still creates security gaps.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires understanding of Auth0 token structure and ability to craft or modify tokens.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Auth0-PHP v8.18.0, Auth0/symfony v5.6.0, Auth0/laravel-auth0 v7.20.0, Auth0/wordpress plugin v5.5.0

Vendor Advisory: https://github.com/auth0/auth0-PHP/security/advisories/GHSA-j2vm-wrq3-f7gf

Restart Required: No

Instructions:

1. Update Auth0-PHP to v8.18.0 or later via composer update auth0/auth0-php. 2. For Symfony, update to v5.6.0+. 3. For Laravel, update to v7.20.0+. 4. For WordPress, update to v5.5.0+. 5. Test authentication flows after update.

🔧 Temporary Workarounds

Manual audience validation

all

Implement custom validation to check token audience matches expected API identifier

🧯 If You Can't Patch

  • Implement additional server-side validation of token type and audience claims
  • Add rate limiting and monitoring for authentication attempts

🔍 How to Verify

Check if Vulnerable:

Check composer.json or package.json for affected Auth0 SDK versions. Review code for token validation using Auth0-PHP SDK.

Check Version:

composer show auth0/auth0-php

Verify Fix Applied:

Verify installed Auth0-PHP version is 8.18.0+ and test authentication with both valid and invalid tokens.

📡 Detection & Monitoring

Log Indicators:

  • Failed authentication attempts with mismatched token types
  • Unusual access patterns following authentication

Network Indicators:

  • Authentication requests with unexpected token formats

SIEM Query:

auth0 token validation failure OR unexpected audience claim

🔗 References

📤 Share & Export