CVE-2021-46743Google Firebase Php-jwt
Critical 9.1 No auth needed
Follow: this CVE · Google · Google Firebase Php-jwt We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 61
- Auth required
- No
- Published
- Mar 29, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-843
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
In Firebase PHP-JWT before 6.0.0, an algorithm-confusion issue (e.g., RS256 / HS256) exists via the kid (aka Key ID) header, when multiple types of keys are loaded in a key ring. This allows an attacker to forge tokens that validate under the incorrect key. NOTE: this provides a straightforward way to use the PHP-JWT library unsafely, but might not be considered a vulnerability in the library itself.
What to do
- Apply the vendor's security update for Firebase Php-jwt.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | firebase/php-jwt |
< 6.0.0 |
6.0.0 |
composer require "firebase/php-jwt:^6.0.0" |
Per OSV / GitHub Advisories (GHSA-8xf4-w7qw-pjjw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| firebase_php-jwt | < 6.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory