Skip to content
Heist/ feed
Back to feed
High

golang-github-go-jose-go-jose, golang-github-go-jose-go-jose.v3 and 1 more products — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-34986

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.4 and 3.0.5, decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encrypted_key field is empty. The panic happens when cipher.KeyUnwrap() in key_wrap.go attempts to allocate a slice with a zero or negative length based on the length of the encrypted_key. This code path is reachable from ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() followed by Decrypt() on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected. This panic is also reachable by calling cipher.KeyUnwrap() directly with any ciphertext parameter less than 16 bytes long, but calling this function directly is less common. Panics can lead to denial of service. This vulnerability is fixed in 4.1.4 and 3.0.5.

Products
golang-github-go-jose-go-jose, golang-github-go-jose-go-jose.v3, golang-gopkg-square-go-jose.v2
Affected versions
2.3.1-1, 2.5.1-2, 2.6.0-1, 2.6.0-2, 2.6.3-3, 2.6.3-4, 3.0.1-1, 3.0.1-2, 3.0.3-6, 4.0.1-4, 4.0.1-4ubuntu0.1, 4.0.1-4ubuntu0.2, 4.0.1-4ubuntu0.3, 4.0.5-1, 4.0.5-1build1, 4.0.5-1ubuntu0.26.04.1~esm1, 4.1.4-1, 4.1.4-2
Fixed versions
Not specified
CVEs
CVE-2026-34986
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:01 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-34986

core-osv · Original source

Published 6 Apr 2026, 17:17 UTC

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.4 and 3.0.5, decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encrypted_key field is empty. The panic happens when cipher.KeyUnwrap() in key_wrap.go attempts to allocate a slice with a zero or negative length based on the length of the encrypted_key. This code path is reachable from ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() followed by Decrypt() on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected. This panic is also reachable by calling cipher.KeyUnwrap() directly with any ciphertext parameter less than 16 bytes long, but calling this function directly is less common. Panics can lead to denial of service. This vulnerability is fixed in 4.1.4 and 3.0.5.

osv:UBUNTU-CVE-2026-34986

golang-gopkg-square-go-jose.v2

Fixed versions: Not specified

golang-gopkg-square-go-jose.v2

Fixed versions: Not specified

golang-github-go-jose-go-jose

Fixed versions: Not specified

golang-gopkg-square-go-jose.v2

Fixed versions: Not specified

golang-github-go-jose-go-jose

Fixed versions: Not specified

golang-github-go-jose-go-jose.v3

Fixed versions: Not specified

golang-gopkg-square-go-jose.v2

Fixed versions: Not specified

golang-github-go-jose-go-jose

Fixed versions: Not specified

golang-github-go-jose-go-jose.v3

Fixed versions: Not specified

golang-gopkg-square-go-jose.v2

Fixed versions: Not specified

golang-github-go-jose-go-jose.v3

Fixed versions: Not specified

golang-gopkg-square-go-jose.v2

Fixed versions: Not specified

golang-github-go-jose-go-jose

Fixed versions: Not specified

Complete source record
{
  "id": "9d5b4cf7a47ef08f786599ef6c4cafc55952fff476ede3bc203b3b7100e36405",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-34986",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-34986",
    "summary": "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.4 and 3.0.5, decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encrypted_key field is empty. The panic happens when cipher.KeyUnwrap() in key_wrap.go attempts to allocate a slice with a zero or negative length based on the length of the encrypted_key. This code path is reachable from ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() followed by Decrypt() on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected. This panic is also reachable by calling cipher.KeyUnwrap() directly with any ciphertext parameter less than 16 bytes long, but calling this function directly is less common. Panics can lead to denial of service. This vulnerability is fixed in 4.1.4 and 3.0.5.",
    "evidence": "osv:UBUNTU-CVE-2026-34986",
    "products": [
      {
        "name": {
          "value": "golang-gopkg-square-go-jose.v2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.3.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-gopkg-square-go-jose.v2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.6.0-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.0.1-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.1-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.1-4ubuntu0.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.1-4ubuntu0.2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.1-4ubuntu0.3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-gopkg-square-go-jose.v2",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.6.0-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.5-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose.v3",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.3-6",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-gopkg-square-go-jose.v2",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.6.3-3",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.5-1build1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.1.4-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.1.4-2",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose.v3",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.3-6",
            "evidence": "/affected/8/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-gopkg-square-go-jose.v2",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.6.3-3",
            "evidence": "/affected/9/versions"
          },
          {
            "value": "2.6.3-4",
            "evidence": "/affected/9/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose.v3",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.3-6",
            "evidence": "/affected/10/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-gopkg-square-go-jose.v2",
          "evidence": "/affected/11/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.6.3-3",
            "evidence": "/affected/11/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose",
          "evidence": "/affected/12/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.5-1",
            "evidence": "/affected/12/versions"
          },
          {
            "value": "4.0.5-1build1",
            "evidence": "/affected/12/versions"
          },
          {
            "value": "4.0.5-1ubuntu0.26.04.1~esm1",
            "evidence": "/affected/12/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-34986",
      "aliases": [
        "UBUNTU-CVE-2026-34986"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-gopkg-square-go-jose.v2",
            "purl": "pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.3.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-gopkg-square-go-jose.v2-dev",
                "binary_version": "2.3.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-gopkg-square-go-jose.v2",
            "purl": "pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.5.1-2",
            "2.6.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-gopkg-square-go-jose.v2-dev",
                "binary_version": "2.6.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.0.1-1",
            "3.0.1-2",
            "4.0.1-4",
            "4.0.1-4ubuntu0.1",
            "4.0.1-4ubuntu0.2",
            "4.0.1-4ubuntu0.3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose-dev",
                "binary_version": "4.0.1-4ubuntu0.3"
              },
              {
                "binary_name": "jose-util",
                "binary_version": "4.0.1-4ubuntu0.3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-gopkg-square-go-jose.v2",
            "purl": "pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.6.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-gopkg-square-go-jose.v2-dev",
                "binary_version": "2.6.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.0.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose-dev",
                "binary_version": "4.0.5-1"
              },
              {
                "binary_name": "jose-util",
                "binary_version": "4.0.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose.v3",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose.v3?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.0.3-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose.v3-dev",
                "binary_version": "3.0.3-6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-gopkg-square-go-jose.v2",
            "purl": "pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.6.3-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-gopkg-square-go-jose.v2-dev",
                "binary_version": "2.6.3-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.0.5-1build1",
            "4.1.4-1",
            "4.1.4-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose-dev",
                "binary_version": "4.1.4-2"
              },
              {
                "binary_name": "jose-util",
                "binary_version": "4.1.4-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose.v3",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose.v3?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.0.3-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose.v3-dev",
                "binary_version": "3.0.3-6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-gopkg-square-go-jose.v2",
            "purl": "pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.6.3-3",
            "2.6.3-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-gopkg-square-go-jose.v2-dev",
                "binary_version": "2.6.3-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose.v3",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose.v3?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.0.3-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose.v3-dev",
                "binary_version": "3.0.3-6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-gopkg-square-go-jose.v2",
            "purl": "pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.6.3-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-gopkg-square-go-jose.v2-dev",
                "binary_version": "2.6.3-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "4.0.5-1",
            "4.0.5-1build1",
            "4.0.5-1ubuntu0.26.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose-dev",
                "binary_version": "4.0.5-1ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "jose-util",
                "binary_version": "4.0.5-1ubuntu0.26.04.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:02.622122777Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-34986"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-34986",
        "https://www.cve.org/CVERecord?id=CVE-2026-34986",
        "https://github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8",
        "https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-34986",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360179,
  "published_at": "2026-04-06T17:17:00+00:00"
}