CVE-2026-34986

High

Description

Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.4 and 3.0.5, decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encrypted_key field is empty. The panic happens when cipher.KeyUnwrap() in key_wrap.go attempts to allocate a slice with a zero or negative length based on the length of the encrypted_key. This code path is reachable from ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() followed by Decrypt() on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected. This panic is also reachable by calling cipher.KeyUnwrap() directly with any ciphertext parameter less than 16 bytes long, but calling this function directly is less common. Panics can lead to denial of service. This vulnerability is fixed in 4.1.4 and 3.0.5.

SeverityHigh
CVSS7.5
Exploit probability—
ProductGo-jose
PublishedApr 6, 2026
First seenApr 6, 2026
Weakness typeCWE-248CWE-248

How to fix

Affected products

ProductAffected versionsFixed in
go-jose_project go-jose3.0.0 ≤ v < 3.0.5, 4.0.0 ≤ v < 4.1.43.0.5, 4.1.4
github.com/go-jose/go-jose/v4Gov < 4.1.44.1.4
github.com/go-jose/go-jose/v3Gov < 3.0.53.0.5
github.com/go-jose/go-joseGov ≤ 2.6.3—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.