GHSA-2c7c-3mj9-8fqh — v3
Fix: go-jose/go-jose@65351c2GHSA-2c7c-3mj9-8fqh is a security vulnerability in github.com/go-jose/go-jose/v3. A fix is available for github.com/go-jose/go-jose/v3 — see the affected versions and patch details below.
Decryption of malicious PBES2 JWE objects can consume unbounded system resources
Real-World Exposure
github.com/go-jose/go-jose/v3🐹github.com/square/go-joseReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/go-jose/go-jose/v3 | all versions | 3.0.1go get github.com/go-jose/go-jose/v3@v3.0.1 |
| 🐹Go | github.com/square/go-jose | all versions | 2.6.2go get github.com/square/go-jose@v2.6.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/go-jose/go-jose/v3, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/go-jose/go-jose/v3 to 3.0.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-2c7c-3mj9-8fqh is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-2c7c-3mj9-8fqh can be triaged on real exposure rather than presence alone.
Tailored to GHSA-2c7c-3mj9-8fqh. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-2c7c-3mj9-8fqh in your dependencies?
O3 Security finds GHSA-2c7c-3mj9-8fqh across Go dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.