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
Check your version
Security advisories for firebase/php-jwt
| Reported | Advisory | Severity | Affected | Fixed 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 fixCheck your whole project. Paste your composer.lock and see every installed package with a known advisory. Nothing is stored.
Check composer.lockQuestions 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.