{"id":"CVE-2026-59891","published":"2026-07-14T16:54:50Z","modified":"2026-07-21T18:43:52Z","title":"Credential confusion in @sigstore/oci can leak registry credentials to an attacker-controlled registry","vendor":"sigstore","product":"sigstore-js","tier":"tail","description":{"text":"sigstore-js provides JavaScript libraries for interacting with Sigstore services. Prior to 0.7.1, getRegistryCredentials() reads credentials from the Docker config file and selects an entry by checking whether any configured auth key contains the target registry string. Because this is a substring match rather than an exact host match, credentials configured for one registry can be selected for and transmitted to a different registry whose hostname has a substring relationship with a configured auth key. This issue is fixed in version 0.7.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00473,"percentile":0.33205,"provenance":"source"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"references":[{"url":"https://github.com/sigstore/sigstore-js/security/advisories/GHSA-pf56-329r-95rw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sigstore/sigstore-js/commit/85c58380758b97ce1b74ef470e55cc21f9d3aa89","tags":["x_refsource_MISC"]},{"url":"https://github.com/sigstore/sigstore-js/releases/tag/%40sigstore%2Foci%400.7.1","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":6.64},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.72}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-28","earliestUrl":"https://github.com/gyubin02/cve-2026-59891-control-lab","repos":[{"name":"gyubin02/cve-2026-59891-control-lab","url":"https://github.com/gyubin02/cve-2026-59891-control-lab","stars":0,"created":"2026-07-28"}]},"first":{"date":"2026-07-28","source":"PoC-in-GitHub","url":"https://github.com/gyubin02/cve-2026-59891-control-lab"},"provenance":"source"},"vendorSlug":"sigstore","affectedVersions":[{"vendor":"sigstore","product":"sigstore-js","versions":["< 0.7.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-21T18:43:45.472102Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@sigstore/oci","vulnerableRanges":["<0.7.1"],"patched":["0.7.1"],"from":["GHSA-pf56-329r-95rw"],"provenance":"source"}],"summary":{"text":"The flaw is in the getRegistryCredentials() function of the @sigstore/oci component within sigstore-js, a JavaScript library for interacting with Sigstore services, where credentials are selected from the Docker config file by substring rather than exact host matching. An attacker who can get a user to interact with a crafted registry whose hostname contains or relates by substring to a configured auth key can cause that user's registry credentials to be sent to the attacker-controlled registry, in versions prior to 0.7.1.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:45Z"},"euvd":{"id":"EUVD-2026-43960","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sigstore-js-cve-2026-59891","children":[{"from":"CVE-2026-59891","to":"CVE-2026-118763","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@sigstore/oci","fromFixed":"0.7.1","toFixed":"0.7.2","daysApart":107},{"kind":"same-code","provenance":"machine","files":["packages/oci/src/credentials.ts"],"commits":["https://github.com/sigstore/sigstore-js/commit/b855f46cfe81f26481c6d3f4b333dfd00f2fd1b1","https://github.com/sigstore/sigstore-js/commit/e4ca65c3ab3c675456ab9b0bd04217ceccad3558","https://github.com/sigstore/sigstore-js/commit/85c58380758b97ce1b74ef470e55cc21f9d3aa89"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-59891","published":"2026-07-14","fixed":"0.7.1","kev":false},{"cve":"CVE-2026-118763","published":"2026-10-29","fixed":"0.7.2","kev":false}],"package":"npm:@sigstore/oci"}}