Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. firebase/php-jwt
  4. ›
  5. GMS-2015-8

GMS-2015-8: Forgeable Public/Private Tokens

April 1, 2015

Since algorithm isn’t enforced in jwt.decode(), a malicious user could choose what algorithm is sent sent to the server. If the server is expecting RSA but is sent HMAC-SHA with RSA’s public key, the server will think the public key is actually an HMAC private key. This could be used to forge any data an attacker wants.

References

  • auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries/

Code Behaviors & Features

Detect and mitigate GMS-2015-8 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.0

Fixed versions

  • 2.0.0

Solution

Upgrade to version 2.0.0 or above.

Source file

packagist/firebase/php-jwt/GMS-2015-8.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.