Go JOSE: Panics in JSON parsing
Impact
Parsing deeply nested JSON structures can hit Go's stack limit, causing the application to crash.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 4.1.5Semantic versions | 4.1.5 |
Version evidence: OSV · GHSA-vvm8-gf78-28g4
View original version evidence (0 explicit versions)
| Affected range | Recorded fix |
|---|---|
| Earlier releases through 3.0.5 (inclusive)Semantic versions | Not recorded |
Version evidence: OSV · GHSA-vvm8-gf78-28g4
View original version evidence (0 explicit versions)
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
go-jose · go-jose
| Version / range | Source status |
|---|---|
| < 4.1.5 | affected |
Original source description
Summary
Parsing deeply nested JSON structures can hit Go's stack limit, causing the application to crash.
Note: this advisory is the same as https://github.com/go-jose/go-jose/security/advisories/GHSA-6mp9-8xrw-74r4.
Impact
Denial of service vulnerability. Any application that parses untrusted JSON via go-jose is exposed.
Workarounds
Reject large inputs before parsing them.
Acknowledgements
Thanks to Dohyun Kim (@azza999), Joshua Rogers of AISLE Research, and Sueun Cho for alerting us to the need to patch this.
References
- Security advisory github.com/go-jose/go-jose/security/advisories/GHSA-vvm8-gf78-28g4
- Patch github.com/go-jose/go-jose/pull/290
- Patch github.com/go-jose/go-jose/commit/a31af25836222f4c45d366d6e8f9b1049dd9935a
- Release notes github.com/go-jose/go-jose/releases/tag/v4.1.5
- Security advisory nvd.nist.gov/vuln/detail/CVE-2026-116586
- Source reference github.com/go-jose/go-jose