# GO-2020-0011 - When decrypting JsonWebEncryption objects with multiple recipients or JsonWebSignature objects with…

Source: https://junglewise.ai/threats/go-2020-0011-when-decrypting-jsonwebencryption-objects-with-multiple-47870cc3  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

Severity: info · Published 2021-04-14

When decrypting JsonWebEncryption objects with multiple recipients
or JsonWebSignature objects with multiple signatures the Decrypt
and Verify methods do not indicate which recipient or signature was
valid. This may lead a caller to rely on protected headers from an
invalid recipient or signature.

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 This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 14 April 2021.

**Which products and versions are affected?** github.com/square/go-jose (Go) SEMVER:introduced=0,fixed=0.0.0-20160922232413-2c5656adca99.

**Is there a fix for This vulnerability?** Yes. github.com/square/go-jose (Go): upgrade to 0.0.0-20160922232413-2c5656adca99 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run github.com/square/go-jose (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 0.0.0-20160922232413-2c5656adca99 or later

  ```sh
  go get github.com/square/go-jose@v0.0.0-20160922232413-2c5656adca99
  ```


## Affected products

- github.com/square/go-jose (Go) SEMVER:introduced=0,fixed=0.0.0-20160922232413-2c5656adca99

## 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)
- [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)
- [GO-2020-0010 - Elliptic curve key disclosure in github.com/square/go-jose](https://junglewise.ai/threats/cve-2016-9121-elliptic-curve-key-disclosure-in-go-jose)
