LowGO-2023-2334GHSA-2c7c-3mj9-8fqh
Denial of service via decryption of malicious PBES2 JWE objects in github.com/go-jose/go-jose/v3
Published 21 Nov 2023 · Updated 4 Feb 2026
Is your project on an affected github.com/go-jose/go-jose/v3?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <3.0.1
- Fixed in
- 3.0.1
Update to the fixed version for your release line, for example:
go get github.com/go-jose/go-jose/v3@v3.0.1- Affected
- All versions
- Fixed in
- No fix released
Details
The go-jose package is subject to a "billion hashes attack" causing denial-of-service when decrypting JWE inputs. This occurs when an attacker can provide a PBES2 encrypted JWE blob with a very large p2c value that, when decrypted, produces a denial-of-service.
Is GO-2023-2334 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/go-jose/go-jose/v3, and gives you the command that fixes it.
More advisories for github.com/go-jose/go-jose/v3
- MediumCVE-2026-116586Go JOSE: Panics in JSON parsing · 28 Oct 2026
- MediumCVE-2026-116585Go JOSE: Panic during CBC-HMAC processing · 28 Oct 2026
- HighCVE-2026-116587Go JOSE: DoS when parsing JWKs that contain RSA keys · 27 Oct 2026
- LowCVE-2026-34986Go JOSE Panics in JWE decryption in github.com/go-jose/go-jose · 26 May 2026
- HighCVE-2026-34986Go JOSE Panics in JWE decryption · 3 Apr 2026
- LowCVE-2025-27144DoS in go-jose Parsing in github.com/go-jose/go-jose · 3 Mar 2025
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.