# CVE-2016-9121: GO-2020-0010 - Elliptic curve key disclosure in github.com/square/go-jose

Source: https://junglewise.ai/threats/cve-2016-9121-elliptic-curve-key-disclosure-in-go-jose  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

CVE-2016-9121 · Severity: low · CVSS 3 · Published 2021-04-14

Elliptic curve key disclosure in github.com/square/go-jose

Technologies: [github.com/square/go-jose (Go)](https://junglewise.ai/threats/technologies/github-com-square-go-jose). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2016-9121 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2016-9121 being exploited in the wild.

**How severe is CVE-2016-9121?** Low severity, with a CVSS score of 3, published 14 April 2021.

**Which products and versions are affected?** github.com/square/go-jose (Go) SEMVER:introduced=0,fixed=1.0.4; gopkg.in/square/go-jose.v1 (Go) SEMVER:introduced=0,fixed=1.0.4.

**Is there a fix for CVE-2016-9121?** Yes. github.com/square/go-jose (Go): upgrade to 1.0.4 or later; gopkg.in/square/go-jose.v1 (Go): upgrade to 1.0.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2016-9121?** Check whether you run github.com/square/go-jose (Go) or gopkg.in/square/go-jose.v1 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/square/go-jose (Go): upgrade to 1.0.4 or later

  ```sh
  go get github.com/square/go-jose@v1.0.4
  ```

- gopkg.in/square/go-jose.v1 (Go): upgrade to 1.0.4 or later

  ```sh
  go get gopkg.in/square/go-jose.v1@v1.0.4
  ```


## Affected products

- github.com/square/go-jose (Go) SEMVER:introduced=0,fixed=1.0.4
- gopkg.in/square/go-jose.v1 (Go) SEMVER:introduced=0,fixed=1.0.4

## Identifiers

- CVE-2016-9121
- GHSA-86r9-39j9-99wp
- GO-2020-0010

## Related threats

- [GO-2025-3485 - DoS in go-jose Parsing in github.com/go-jose/go-jose](https://junglewise.ai/threats/cve-2025-27144-dos-in-go-jose-parsing)
- [Decryption of malicious PBES2 JWE objects can consume unbounded system resources](https://junglewise.ai/threats/decryption-of-malicious-pbes2-jwe-objects-can-consume-unbounded-system-597d0776)
- [GO-2023-2334 - Denial of service via decryption of malicious PBES2 JWE objects in github.com/go-jose/go-jose/v3](https://junglewise.ai/threats/go-2023-2334-denial-of-service-via-decryption-of-malicious-pbes2-jwe-09709de5)
- [GO-2022-0945 - Signature validation bypass in gopkg.in/square/go-jose.v1](https://junglewise.ai/threats/cve-2016-9122-go-jose-signature-validation-bypass)
- [Square go-jose integer overflow in CBC-HMAC decryption](https://junglewise.ai/threats/cve-2016-9123-square-go-jose-integer-overflow-in-cbc-hmac-decryption)
