Live threats

All CVEs / Google

CVE-2021-46743Google Firebase Php-jwt

Critical 9.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Firebase Php-jwt.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
googlefirebase_php-jwt< 6.0.0

Official sources

References

Links published by the sources. Open them with care.