Security mailing lists by PureSourceCode

CVE-2026-34986

HIGH 7.5CVSS 3.1

Go JOSE Panics in JWE decryption

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.

Published
6 Apr 2026
Last modified
23 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-131CWE-248
Also known as
GHSA-78h2-9frx-2jm8GO-2026-4945
Sources
NVDJSONOSV GHSA-78h2-9frx-2jm8JSONOSV GO-2026-4945JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD go-jose_project go-jose
cpe:2.3:a:go-jose_project:go-jose:*:*:*:*:*:*:*:*
>= 3.0.0, < 3.0.5 3.0.5
NVD go-jose_project go-jose
cpe:2.3:a:go-jose_project:go-jose:*:*:*:*:*:*:*:*
>= 4.0.0, < 4.1.4 4.1.4
OSV Go github.com/go-jose/go-jose/v4 < 4.1.4 4.1.4
OSV Go github.com/go-jose/go-jose/v3 < 3.0.5 3.0.5
OSV Go github.com/go-jose/go-jose <= 2.6.3

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 Apr 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 May 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 3 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.