Summary
Go JOSE: Panics in JSON parsing
Advisory details
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
- https://github.com/advisories/GHSA-vvm8-gf78-28g4
- https://github.com/go-jose/go-jose/security/advisories/GHSA-vvm8-gf78-28g4
- https://nvd.nist.gov/vuln/detail/CVE-2026-116586
- https://github.com/go-jose/go-jose/pull/290
- https://github.com/go-jose/go-jose/commit/a31af25836222f4c45d366d6e8f9b1049dd9935a
- https://github.com/go-jose/go-jose/releases/tag/v4.1.5
Related vulnerabilities
All Supply chain →- MEDIUMCVE-2026-63386
js-toml allows uncontrolled recursion in `load()` leading `RangeError` (stack exhaustion) on deeply nested input
- HIGHCVE-2026-129222
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()
- HIGHCVE-2026-129223
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in Synset.tree()/acyclic_tree() via WordNet relation traversal
- MEDIUMCVE-2026-129224
NLTK: Uncontrolled recursion in CCG lexicon parser causes denial of service via deeply nested category input
- MEDIUMCVE-2026-129225
NLTK: Uncontrolled recursion in DependencyGraph traversal causes denial of service via deep dependency chains
- MEDIUMCVE-2026-129226
NLTK: Uncontrolled recursion in semantic-logic type parser causes denial of service via nested type strings