Type conversion in jose2go - #VU173142
Published: December 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by interrupting request processing or crashing the server process if the panic is not recovered.
The vulnerability exists due to an unchecked string type assertion in the jose.Enc key callback when jose.Decode passes it a JWS header without the expected enc field. A remote attacker can submit a JWS token to an endpoint that uses the callback for JWE decryption to trigger a panic.