CVE-2026-116586: Go JOSE: Panics in JSON parsing

Published Oct 26, 2026
·
Updated

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

34 affected componentsFixes available
go/github.com/go-jose/go-jose<4.1.5
go/github.com/go-jose/go-jose/v3<=3.0.5
go/github.com/go-jose/go-jose/v4<4.1.5
4.1.5
ubuntu/golang-gopkg-square-go-jose.v2*
ubuntu/golang-gopkg-square-go-jose.v2*
ubuntu/golang-github-go-jose-go-jose*
ubuntu/golang-gopkg-square-go-jose.v2*
ubuntu/golang-github-go-jose-go-jose*
ubuntu/golang-github-go-jose-go-jose.v3*
ubuntu/golang-gopkg-square-go-jose.v2*
ubuntu/golang-github-go-jose-go-jose.v3*
ubuntu/golang-gopkg-square-go-jose.v2*
ubuntu/golang-github-go-jose-go-jose*
debian/golang-github-go-jose-go-jose<=4.0.5-1, <=4.1.4-2
debian/golang-github-go-jose-go-jose.v3<=3.0.3-6, <=3.0.5-1
debian/golang-gopkg-square-go-jose.v1<=1.1.2-4
debian/golang-gopkg-square-go-jose.v2<=2.6.0-2, <=2.6.3-3, <=2.6.3-4
debian/golang-github-go-jose-go-jose*
debian/golang-github-go-jose-go-jose*
debian/golang-github-go-jose-go-jose.v3*
debian/golang-github-go-jose-go-jose.v3*
debian/golang-gopkg-square-go-jose.v1*
debian/golang-gopkg-square-go-jose.v1*
debian/golang-gopkg-square-go-jose.v1*
All of the following
azurelinux/containerized-data-importer<1.62.0-10
1.62.0-10
Microsoft Azure Linux=3.0
All of the following
azurelinux/telegraf<1.31.0-37
1.31.0-37
Microsoft Azure Linux=3.0
All of the following
azurelinux/kubernetes<1.30.10-33
1.30.10-33
Microsoft Azure Linux=3.0
All of the following
azurelinux/skopeo<1.14.4-16
1.14.4-16
Microsoft Azure Linux=3.0
All of the following
azurelinux/dcos-cli<1.2.0-23
1.2.0-23
Microsoft Azure Linux=3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/go-jose/go-jose/v4 to a version that resolves this vulnerability.

    Fixed in 4.1.5
  2. Upgrade

    Upgrade azurelinux/containerized-data-importer to a version that resolves this vulnerability.

    Fixed in 1.62.0-10
  3. Upgrade

    Upgrade azurelinux/telegraf to a version that resolves this vulnerability.

    Fixed in 1.31.0-37
  4. Upgrade

    Upgrade azurelinux/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.30.10-33
  5. Upgrade

    Upgrade azurelinux/skopeo to a version that resolves this vulnerability.

    Fixed in 1.14.4-16
  6. Upgrade

    Upgrade azurelinux/dcos-cli to a version that resolves this vulnerability.

    Fixed in 1.2.0-23
  7. Upgrade

    Upgrade go-jose to a version that resolves this vulnerability.

    Fixed in 4.1.5
  8. Compensating control

    Reject large inputs before parsing untrusted JSON through go-jose.

Event History

Oct 26, 2026
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·09:09 PM
Data Sourced
via MITRE·09:09 PM
DescriptionWeakness
Data Sourced
via OSV·09:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness
Oct 28, 2026
Data Sourced
via OSV·08:16 PM
Affected Software
Advisory Published
via GitHub·09:14 PM
Data Sourced
via GitHub·09:14 PM
DescriptionWeaknessAffected Software
Oct 31, 2026
Data Sourced
via Microsoft·08:08 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

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.

3

Is there a fixed version available?

Yes. The issue is fixed in go-jose version 4.1.5.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203