firebase/php-jwt vulnerabilities

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.

Registry
Composer
Latest
7.2.1
License
BSD-3-Clause

3 known advisories

The latest version, 7.2.1, is not affected by any of them. Projects on older versions may be.

Update to the latest version:composer require firebase/php-jwt:^7.2.1

Security advisories for firebase/php-jwt

  • LowGHSA-2x45-7fc3-mxwq31 Jul 2025

    php-jwt contains weak encryption

    Affected
    <7.0.0
    Fixed in
    7.0.0
  • CriticalGHSA-h533-5v22-8vcp15 May 2024

    firebase/php-jwt: "None" Algorithm treated as valid on tokens

    Affected
    <2.0.0
    Fixed in
    2.0.0
  • CriticalGHSA-8xf4-w7qw-pjjw30 Mar 2022

    Firebase PHP-JWT key/algorithm type confusion

    Affected
    <6.0.0
    Fixed in
    6.0.0

Which of your client projects still run an old firebase/php-jwt?

NPMscan reads the composer.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other Composer packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Composer registry.