GO-2020-0011 - When decrypting JsonWebEncryption objects with multiple recipients or JsonWebSignature objects with…
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.
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
go get github.com/square/go-jose@v0.0.0-20160922232413-2c5656adca99