CVE-2026-116586: Go JOSE: Panics in JSON parsing
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.
Other sources
Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.5, parsing attacker-controlled JSON through go-jose allows deeply nested arrays or objects to exceed Go's stack limit. The resulting stack overflow crashes the application and permits denial of service in applications that parse untrusted JSON through go-jose. This issue is fixed in version 4.1.5.
— Ubuntu
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/go-jose/go-jose/v4to a version that resolves this vulnerability.Fixed in 4.1.5 - Upgrade
Upgrade
azurelinux/containerized-data-importerto a version that resolves this vulnerability.Fixed in 1.62.0-10 - Upgrade
Upgrade
azurelinux/telegrafto a version that resolves this vulnerability.Fixed in 1.31.0-37 - Upgrade
Upgrade
azurelinux/kubernetesto a version that resolves this vulnerability.Fixed in 1.30.10-33 - Upgrade
Upgrade
azurelinux/skopeoto a version that resolves this vulnerability.Fixed in 1.14.4-16 - Upgrade
Upgrade
azurelinux/dcos-clito a version that resolves this vulnerability.Fixed in 1.2.0-23 - Upgrade
Upgrade
go-joseto a version that resolves this vulnerability.Fixed in 4.1.5 - Compensating control
Reject large inputs before parsing untrusted JSON through go-jose.
Event History
Frequently Asked Questions
Which applications are exposed to this denial-of-service issue?
Applications using go-jose versions earlier than 4.1.5 are exposed if they parse attacker-controlled JSON through the library. The affected use cases can include JWE, JWS, or JWT processing where untrusted JSON reaches go-jose parsing.
What must an attacker provide to trigger the crash?
An attacker needs to cause the application to parse malicious JSON containing deeply nested arrays or objects. Excessive nesting can exceed Go's stack limit, causing a stack overflow and application crash.
Is there a fixed version available?
Yes. The issue is fixed in go-jose version 4.1.5.