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

Source: https://junglewise.ai/threats/firebase-php-jwt-none-algorithm-treated-as-valid-on-tokens-5fd83183  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-05-15  
License: CC BY 4.0 with a link back

Severity: info · Published 2024-05-15

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

Technologies: [firebase/php-jwt (Packagist)](https://junglewise.ai/threats/technologies/firebase-php-jwt). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 15 May 2024.

**Which products and versions are affected?** firebase/php-jwt (Packagist) ECOSYSTEM:introduced=0,fixed=2.0.0.

**Is there a fix for This vulnerability?** Yes. firebase/php-jwt (Packagist): upgrade to 2.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run firebase/php-jwt (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- firebase/php-jwt (Packagist): upgrade to 2.0.0 or later

  ```sh
  composer require firebase/php-jwt:^2.0.0
  ```


## Affected products

- firebase/php-jwt (Packagist) ECOSYSTEM:introduced=0,fixed=2.0.0

## Related threats

- [php-jwt contains weak encryption](https://junglewise.ai/threats/cve-2025-45769-php-jwt-contains-weak-encryption)
- [Firebase PHP-JWT key/algorithm type confusion](https://junglewise.ai/threats/cve-2021-46743-firebase-php-jwt-key-algorithm-type-confusion)
