{"answers":{"affected":"5 open source packages ship an affected version, including github.com/square/go-jose and gopkg.in/square/go-jose.v1. It affects 1 product.","exploited":"There is no known exploitation of CVE-2016-9121 in the wild and no public exploit code.","fix":"Upgrade github.com/square/go-jose to 1.0.4 or later.","what":"CVE-2016-9121 is a critical vulnerability in Go JOSE All versions before 1.0.4, published on 28 Mar 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-9121 and fix it if it is affected.\n\nWhat it is: CVE-2016-9121 is a critical vulnerability in Go JOSE All versions before 1.0.4, published on 28 Mar 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2016-9121 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/square/go-jose (Go): affected all versions; fixed in 1.0.4\n- github.com/square/go-jose (Go): affected all versions; fixed in 1.0.4\n- github.com/square/go-jose (Go): affected all versions; fixed in 1.0.4\n- gopkg.in/square/go-jose.v1 (Go): affected all versions; fixed in 1.0.4\n- gopkg.in/square/go-jose.v1 (Go): affected all versions; fixed in 1.0.4\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-2016-9121/ (Markdown: https://insights.sbomify.com/CVE-2016-9121/index.md)","id":"CVE-2016-9121","markdown":"https://insights.sbomify.com/CVE-2016-9121/index.md","name":"CVE-2016-9121","record":{"aliases":["DEBIAN-CVE-2016-9121","GHSA-86r9-39j9-99wp","GO-2020-0010"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Go JOSE library","requires_auth":"none","summary":"An attacker can exploit an invalid curve attack in ECDH-ES key derivation to potentially decrypt messages, affecting users of the Go JOSE library.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"go-jose","vendor":"go-jose_project"}],"cvss":{"score":9.1,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.0"},"cwes":[{"id":"CWE-326","name":"Inadequate Encryption Strength"}],"description":"go-jose before 1.0.4 suffers from an invalid curve attack for the ECDH-ES algorithm. When deriving a shared key using ECDH-ES for an encrypted message, go-jose neglected to check that the received public key on a message is on the same curve as the static private key of the receiver, thus making it vulnerable to an invalid curve attack.","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":"Elliptic Curve Key Disclosure in go-jose","id":"CVE-2016-9121","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"weak_cryptography","year":"2016"},"n_packages":5,"n_references":3,"next":{"headline":"Go JOSE Signature Validation Bypass","id":"CVE-2016-9122"},"packages":[{"ecosystem":"Go","fixed":["1.0.4"],"introduced":["0"],"last_affected":[],"package":"github.com/square/go-jose","purl":null,"source":"GHSA-86r9-39j9-99wp"},{"ecosystem":"Go","fixed":["1.0.4"],"introduced":["0"],"last_affected":[],"package":"github.com/square/go-jose","purl":"pkg:golang/github.com/square/go-jose","source":"GHSA-86r9-39j9-99wp"},{"ecosystem":"Go","fixed":["1.0.4"],"introduced":["0"],"last_affected":[],"package":"github.com/square/go-jose","purl":"pkg:golang/github.com/square/go-jose","source":"GO-2020-0010"},{"ecosystem":"Go","fixed":["1.0.4"],"introduced":["0"],"last_affected":[],"package":"gopkg.in/square/go-jose.v1","purl":null,"source":"GHSA-86r9-39j9-99wp"},{"ecosystem":"Go","fixed":["1.0.4"],"introduced":["0"],"last_affected":[],"package":"gopkg.in/square/go-jose.v1","purl":"pkg:golang/gopkg.in/square/go-jose.v1","source":"GHSA-86r9-39j9-99wp"}],"prev":{"headline":"Race condition in n/a","id":"CVE-2016-9120"},"products":["Go JOSE All versions before 1.0.4"],"published":"2017-03-28","related":[{"cvss_score":7.5,"headline":"Go JOSE affect by a panic in JWE decryption","id":"CVE-2026-34986","kev_date_added":null,"published":"2026-04-06"},{"cvss_score":7.5,"headline":"Go JOSE Signature Validation Bypass","id":"CVE-2016-9122","kev_date_added":null,"published":"2017-03-28"},{"cvss_score":7.5,"headline":"Integer Overflow in go-jose","id":"CVE-2016-9123","kev_date_added":null,"published":"2017-03-28"}],"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-06","vendors":["n/a"]},"summary":"An attacker can exploit an invalid curve attack in ECDH-ES key derivation to potentially decrypt messages, affecting users of the Go JOSE library.","url":"https://insights.sbomify.com/CVE-2016-9121/"}