# github.com/lestrrat-go/jwx vulnerable to Potential Padding Oracle Attack

Source: https://junglewise.ai/threats/github-com-lestrrat-go-jwx-vulnerable-to-potential-padding-oracle-094d592e  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-06-14  
License: CC BY 4.0 with a link back

Severity: info · Published 2023-06-14

github.com/lestrrat-go/jwx vulnerable to Potential Padding Oracle Attack

Technologies: [github.com/lestrrat-go/jwx (Go)](https://junglewise.ai/threats/technologies/github-com-lestrrat-go-jwx), [github.com/lestrrat-go/jwx/v2 (Go)](https://junglewise.ai/threats/technologies/github-com-lestrrat-go-jwx-v2). 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 June 2023.

**Which products and versions are affected?** github.com/lestrrat-go/jwx (Go) SEMVER:introduced=0,fixed=1.2.26; github.com/lestrrat-go/jwx/v2 (Go) SEMVER:introduced=0,fixed=2.0.11.

**Is there a fix for This vulnerability?** Yes. github.com/lestrrat-go/jwx (Go): upgrade to 1.2.26 or later; github.com/lestrrat-go/jwx/v2 (Go): upgrade to 2.0.11 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/lestrrat-go/jwx (Go) or github.com/lestrrat-go/jwx/v2 (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/lestrrat-go/jwx (Go): upgrade to 1.2.26 or later

  ```sh
  go get github.com/lestrrat-go/jwx@v1.2.26
  ```

- github.com/lestrrat-go/jwx/v2 (Go): upgrade to 2.0.11 or later

  ```sh
  go get github.com/lestrrat-go/jwx/v2@v2.0.11
  ```


## Affected products

- github.com/lestrrat-go/jwx (Go) SEMVER:introduced=0,fixed=1.2.26
- github.com/lestrrat-go/jwx/v2 (Go) SEMVER:introduced=0,fixed=2.0.11

## Related threats

- [GO-2024-2632 - JWX vulnerable to a denial of service attack using compressed JWE message in github.com/lestrrat-go/jwx](https://junglewise.ai/threats/cve-2024-28122-jwx-vulnerable-to-a-denial-of-service-attack-using-compressed-jwe)
- [GO-2024-2454 - Panic due to nil pointer dereference in github.com/lestrrat-go/jwx/v2](https://junglewise.ai/threats/cve-2024-21664-parsing-json-serialized-payload-without-protected-field-can-lead)
- [GO-2023-2379 - Denial of service due to malicious parameters in github.com/lestrrat-go/jwx](https://junglewise.ai/threats/cve-2023-49290-lestrrat-go-jwx-s-malicious-parameters-in-jwe-can-cause-a-dos)
- [GO-2023-1859 - Padding oracle vulnerability in github.com/lestrrat-go/jwx](https://junglewise.ai/threats/go-2023-1859-padding-oracle-vulnerability-in-github-com-lestrrat-go-jwx-49cebe02)
