GHSA-hxhc-wmg8-xrqf
JSON

high

namshi/jose insecure JSON Web Signatures (JWS)

Severity
high rating by GitHub
Published
Last changed

Description

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.

Affected

Product or packageVersionsReported by
namshi/jose (Packagist)before 1.1.2, from 1.2.0 before 1.2.2, from 2.0.0 before 2.0.3, from 2.1.0 before 2.1.2GitHub Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-hxhc-wmg8-xrqf changed 2024-12-02CC-BY-4.0