NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · RubyGems

CVE-2023-51774: json-jwt allows bypass of identity checks via a sign/encryption confusion attack

mediumGHSA-c8v6-786g-vjx6

The json-jwt (aka JSON::JWT) gem 1.16.x before 1.16.6, 1.15.x before 1.15.3.1 for Ruby sometimes allows bypass of identity checks via a sign/encryption confusion attack. For example, JWE can sometimes be used to bypass JSON::JWT.decode.

Published Feb 29, 2024 · Updated Mar 6, 2024

Affected packages

json-jwt

Ecosystem
RubyGems
Affected
>= 1.16.0, < 1.16.6
Fixed in
1.16.6
Check
bundle info json-jwt

json-jwt

Ecosystem
RubyGems
Affected
< 1.15.3.1
Fixed in
1.15.3.1
Check
bundle info json-jwt

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

The json-jwt (aka JSON::JWT) gem 1.16.x before 1.16.6, 1.15.x before 1.15.3.1 for Ruby sometimes allows bypass of identity checks via a sign/encryption confusion attack. For example, JWE can sometimes be used to bypass JSON::JWT.decode.

Credited to postmodern, sorah, Capncavedan.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology