Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. namshi/jose
  4. ›
  5. GHSA-hxhc-wmg8-xrqf

GHSA-hxhc-wmg8-xrqf: namshi/jose insecure JSON Web Signatures (JWS)

May 17, 2024

namshi/jose allows the acceptance of unsecure JSON Web Signatures (JWS) by default. The vulnerability arises from the $allowUnsecure flag, which, when set to true during the loading of JWSes, permits tokens signed with ’none’ algorithms to be processed. This behavior poses a significant security risk as it could allow an attacker to impersonate users by crafting a valid jwt token.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/namshi/jose/2015-02-19.yaml
  • github.com/advisories/GHSA-hxhc-wmg8-xrqf
  • github.com/namshi/jose
  • github.com/namshi/jose/commit/009f86d6ced000b806b2f602c0b7393060ebb34e

Code Behaviors & Features

Detect and mitigate GHSA-hxhc-wmg8-xrqf with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.1.2, all versions starting from 1.2.0 before 1.2.2, all versions starting from 2.0.0 before 2.0.3, all versions starting from 2.1.0 before 2.1.2

Fixed versions

  • 1.1.2
  • 1.2.2
  • 2.0.3
  • 2.1.2

Solution

Upgrade to versions 1.1.2, 1.2.2, 2.0.3, 2.1.2 or above.

Source file

packagist/namshi/jose/GHSA-hxhc-wmg8-xrqf.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:25 +0000.