{"answers":{"affected":"3 open source packages ship an affected version, including github.com/ory/hydra. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-5300 in the wild and no public exploit code.","fix":"Upgrade github.com/ory/hydra to 1.4.0 or later.","what":"CVE-2020-5300 is a medium-severity vulnerability in ory hydra, published on 6 Apr 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5300 and fix it if it is affected.\n\nWhat it is: CVE-2020-5300 is a medium-severity vulnerability in ory hydra, published on 6 Apr 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-5300 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/ory/hydra (Go): affected all versions; fixed in 1.4.0\n- github.com/ory/hydra (Go): affected all versions; fixed in 1.4.0\n- github.com/ory/hydra (Go): affected all versions; fixed in 1.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-5300/ (Markdown: https://insights.sbomify.com/CVE-2020-5300/index.md)","id":"CVE-2020-5300","markdown":"https://insights.sbomify.com/CVE-2020-5300/index.md","name":"CVE-2020-5300","record":{"aliases":["GHSA-3p3g-vpw6-4w66","GO-2022-0786"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"OAuth2 OpenID Connect Server","requires_auth":"low_privilege","summary":"Hydra fails to enforce unique JTI values in private_key_jwt authentication, allowing potential token replay attacks if intercepted.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"hydra","vendor":"ory"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-294","name":"Authentication Bypass by Capture-replay"}],"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","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Disallow replay of `private_key_jwt` by blacklisting JTIs in Hydra","id":"CVE-2020-5300","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2020"},"n_packages":3,"n_references":3,"next":{"headline":"Information disclosure of source code in SimpleSAMLphp","id":"CVE-2020-5301"},"packages":[{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/ory/hydra","purl":null,"source":"GHSA-3p3g-vpw6-4w66"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/ory/hydra","purl":"pkg:golang/github.com/ory/hydra","source":"GHSA-3p3g-vpw6-4w66"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/ory/hydra","purl":"pkg:golang/github.com/ory/hydra","source":"GO-2022-0786"}],"prev":{"headline":"Potential CSV Injection vector in OctoberCMS","id":"CVE-2020-5299"},"products":["hydra"],"published":"2020-04-06","related":[{"cvss_score":7.2,"headline":"Ory Hydra has a SQL injection via forged pagination tokens","id":"CVE-2026-33504","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":6.1,"headline":"Hydra has Reflected XSS via error_hint parameter","id":"CVE-2019-8400","kev_date_added":null,"published":"2019-02-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["ory"]},"summary":"Hydra fails to enforce unique JTI values in private_key_jwt authentication, allowing potential token replay attacks if intercepted.","url":"https://insights.sbomify.com/CVE-2020-5300/"}