# CVE-2020-5300: Disallow replay of `private_key_jwt` by blacklisting JTIs in Hydra

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Published: 2020-04-06T16:30:14.000Z
- Modified: 2026-07-08T06:28:27.094Z
- Also known as: GHSA-3p3g-vpw6-4w66, GO-2022-0786
- Weaknesses: CWE-294
- Assigned by: GitHub_M

## Description

In Hydra (an OAuth2 Server and OpenID Certified™ OpenID Connect Provider written in Go), before version 1.4.0+oryOS.17, when using client authentication method 'private_key_jwt' [1], OpenId specification says the following about assertion `jti`: "A unique identifier for the token, which can be used to prevent reuse of the token. These tokens MUST only be used once, unless conditions for reuse were negotiated between the parties". Hydra does not check the uniqueness of this `jti` value. Exploiting this vulnerability is somewhat difficult because: - TLS protects against MITM which makes it difficult to intercept valid tokens for replay attacks - The expiry time of the JWT gives only a short window of opportunity where it could be replayed This has been patched in version v1.4.0+oryOS.17

(As written by CVE List.)

## Affected

- ory hydra: < 1.4.0+oryOS.17; before 1.4.0
- github.com/ory/hydra (Go): before 1.4.0

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/ory/hydra/security/advisories/GHSA-3p3g-vpw6-4w66> (advisory, third-party-advisory, web)
- <https://github.com/ory/hydra/commit/700d17d3b7d507de1b1d459a7261d6fb2571ebe3> (fix, patch, third-party-advisory, web)
- <https://github.com/ory/hydra/releases/tag/v1.4.0> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5300> (advisory)
- <https://github.com/ory/hydra> (package)
- <https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication> (web)

## Sources

- CVE List: [CVE-2020-5300](https://www.cve.org/CVERecord?id=CVE-2020-5300), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3p3g-vpw6-4w66](https://github.com/advisories/GHSA-3p3g-vpw6-4w66), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2022-0786](https://pkg.go.dev/vuln/GO-2022-0786), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2020-5300](https://nvd.nist.gov/vuln/detail/CVE-2020-5300), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5300 · Whole record: https://cve.day/CVE-2020-5300.json · Rebuilt by cve.day 2026-11-25T22:57:51.793Z
