MediumGHSA-2c7c-3mj9-8fqhGO-2023-2334

Decryption of malicious PBES2 JWE objects can consume unbounded system resources

Published 21 Nov 2023 · Updated 10 Sept 2026

Is your project on an affected github.com/go-jose/go-jose/v3?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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
<2.6.2
Fixed in
2.6.2
Update to the fixed version for your release line, for example:go get github.com/square/go-jose@v2.6.2

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 GHSA-2c7c-3mj9-8fqh 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
All 10 advisories for github.com/go-jose/go-jose/v3

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.