Live threats

All CVEs / Go-jose Project

CVE-2026-34986Go-jose Project Go-jose

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Apr 6, 2026
Updated
Oct 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-248, CWE-131
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-jose.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/go-jose/go-jose ≤ 2.6.3 no fixed version —
Go github.com/go-jose/go-jose/v3 < 3.0.5 3.0.5 go get github.com/go-jose/go-jose/v3@v3.0.5
Go github.com/go-jose/go-jose/v3 < 3.0.5 3.0.5 go get github.com/go-jose/go-jose/v3@v3.0.5
Go github.com/go-jose/go-jose/v4 < 4.1.4 4.1.4 go get github.com/go-jose/go-jose/v4@v4.1.4
Go github.com/go-jose/go-jose/v4 < 4.1.4 4.1.4 go get github.com/go-jose/go-jose/v4@v4.1.4

Per OSV / GitHub Advisories (GHSA-78h2-9frx-2jm8, GO-2026-4945). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
go-jose_projectgo-jose≥ 3.0.0 < 3.0.5
go-jose_projectgo-jose≥ 4.0.0 < 4.1.4

Official advisories

Also: SUSE (+65), Red Hat (+40)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.