Vulnerability DatabaseGHSA-h533-5v22-8vcp

GHSA-h533-5v22-8vcp
PHP vulnerability analysis and mitigation

Overview

A critical vulnerability was discovered in several JSON Web Token (JWT) libraries, including firebase/php-jwt, affecting versions prior to 2.0.0. The vulnerability allowed attackers to bypass the verification step when using asymmetric keys (RS256, RS384, RS512, ES256, ES384, ES512). This security issue was particularly concerning for implementations using JWT for authentication purposes (GitHub Advisory, Auth0 Blog).

Technical details

The vulnerability stemmed from how JWT libraries handled the algorithm ('alg') field in the token header. The issue allowed attackers to control which method was used to verify the signature, leading to two main attack vectors: the 'none' algorithm attack and the algorithm confusion attack between RSA and HMAC. In the RSA/HMAC confusion attack, if a server was expecting a token signed with RSA but received one signed with HMAC, it would treat the public key as an HMAC secret key (Auth0 Blog).

Impact

The vulnerability could allow attackers to forge valid tokens and bypass authentication mechanisms. Since public keys are typically publicly available, attackers could use these keys to create forged tokens that would pass verification, potentially gaining unauthorized access to protected resources (Auth0 Blog).

Exploitability

The vulnerability was highly exploitable as it only required knowledge of the public key used for verification. Attackers could forge tokens by signing them using the public key as an HMAC key, effectively bypassing the intended RSA verification process (Auth0 Blog).

Mitigation and workarounds

The issue was patched in version 2.0.0 of firebase/php-jwt. The fix involved updating the decode() function to require explicit specification of allowed algorithms when verifying tokens. Users were advised to upgrade to version 2.0.0 or later to address this vulnerability (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-84361HIGH7.7
  • PHP logoPHP
  • composer
NoYesSep 01, 2026
GHSA-8rr7-cvq3-gmfhHIGH7.5
  • PHP logoPHP
  • league/commonmark
NoYesSep 01, 2026
GHSA-jjv6-8j6v-6j52HIGH7.5
  • PHP logoPHP
  • league/commonmark
NoYesSep 01, 2026
GHSA-j8pm-gj4c-rq4xHIGH7.5
  • PHP logoPHP
  • league/commonmark
NoYesSep 01, 2026
GHSA-f8fg-pg57-v4j8HIGH7.2
  • PHP logoPHP
  • league/commonmark
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management