Improper Audience Validation in Auth0-PHP SDK - Security Vulnerability

auth0/auth0-php Updated 17 Dec 2025

Summary

17/12/2025
MODERATE
Yes i
Moderate
6.8

GHSA-j2vm-wrq3-f7gf: Auth0-PHP SDK has Improper Audience Validation. Affects auth0/auth0-php versions >= 8.0.0, < 8.18.0. Fixed in 8.18.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Auth0-PHP SDK is a popular library used for integrating Auth0 authentication into PHP applications. It provides developers with tools to manage user authentication, authorization, and session management. The SDK is widely utilized in various frameworks such as Symfony, Laravel, and WordPress. However, versions between 8.0.0 and 8.17.0 contain a vulnerability that allows improper audience validation, potentially leading to security risks.

Vulnerability Detail

The vulnerability arises from the improper validation of audience claims in access tokens within applications built using the Auth0-PHP SDK. This flaw allows affected applications to mistakenly accept ID tokens as access tokens, which can lead to unauthorized access and data breaches. The vulnerability is classified under CWE-863, indicating an issue with improper authorization. The CVSS score for this vulnerability is 6.8, indicating a moderate severity level.

How To Fix

Minimum fixed version

8.18.0

This is the first release that contains the fix.

composer require auth0/auth0-php:8.18.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, developers can implement additional checks to validate the audience claims in access tokens manually. However, this is not a substitute for upgrading to the patched version of the SDK.

Conclusion

The Auth0-PHP SDK vulnerability related to improper audience validation poses a significant risk to applications using affected versions. It is crucial for developers to upgrade to version 8.18.0 or higher to mitigate this risk. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for auth0/auth0-php →

Share this vulnerability

FAQ

The Auth0-PHP SDK is a library that helps developers integrate Auth0 authentication into their PHP applications, providing tools for user management and session handling.

Versions between 8.0.0 and 8.17.0 of the Auth0-PHP SDK are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in your software. By analyzing your composer.lock file, it can alert you to any vulnerabilities, including this one.

If an immediate upgrade is not possible, implement additional audience validation checks in your application as a temporary workaround.

The CVSS score for this vulnerability is 6.8, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for auth0/auth0-php.

How To Fix

Minimum fixed version

8.18.0

This is the first release that contains the fix.

composer require auth0/auth0-php:8.18.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback