Skip to content
Laskyr

PHP package security

Is firebase/php-jwt vulnerable?

3 known security advisories for firebase/php-jwt. The latest was reported on 2025-07-31 and is fixed in 7.0.0. The newest release, 7.2.1, is not affected by any of them.

2 critical 1 low

Known advisories
3
Newest release
7.2.1
Released
2026-09-28
Affecting newest release
0
Last synced
2026-11-03

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec. · packagist.org/packages/firebase/php-jwt

Check your version

Run composer show firebase/php-jwt in your project to see the installed version, then enter it here.

Security advisories for firebase/php-jwt

Newest first. “Affected” is the Composer version constraint from the advisory; “fixed in” is each version the advisory names as the first safe one on its release line.

ReportedAdvisorySeverityAffectedFixed in
2025-07-31 php-jwt contains weak encryption GHSA-2x45-7fc3-mxwq · CVE-2025-45769 · GitHub low <7.0.0 7.0.0
2022-03-30 Key/algorithm type confusion CVE-2021-46743 · FriendsOfPHP/security-advisories, GitHub critical <6.0.0 6.0.0
2015-04-02 Critical vulnerabilities in JSON Web Token libraries Advisory · FriendsOfPHP/security-advisories, GitHub critical <2.0.0 2.0.0

Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.

Ask about a fix

Check your whole project. Paste your composer.lock and see every installed package with a known advisory. Nothing is stored.

Check composer.lock

Questions about firebase/php-jwt

Does firebase/php-jwt have known vulnerabilities?

Yes. Packagist lists 3 security advisories for firebase/php-jwt (2 critical, 1 low severity). The most recent, reported 2025-07-31, is "php-jwt contains weak encryption". The newest release, 7.2.1, is outside every affected range.

Which version of firebase/php-jwt should I run?

The newest stable release is 7.2.1 (published 2026-09-28). The most recent advisory is fixed in 7.0.0, so stay on or above the fixed version for your major version. Run composer update firebase/php-jwt, then composer audit to confirm nothing else is flagged.

How do I check if my firebase/php-jwt version is affected?

Run composer show firebase/php-jwt in your project to see the installed version, then enter it in the version check on this page. You can also run composer audit, which reads the same Packagist advisory data for every package in your composer.lock.

Where this data comes from

Advisories come from the Packagist security advisories API, which collects the GitHub Advisory Database and the FriendsOfPHP security advisories. composer audit reads the same data. Releases come from packagist.org. Last synced 2026-11-03; we re-check daily. Each advisory links to its source. Spot an error? Tell us.

← All PHP packages

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit