CVE-2026-59891
CRITICALCredential confusion in @sigstore/oci can leak registry credentials to an attacker-controlled registry
Title source: cnaExploitation Summary
EIP tracks 1 public exploit for CVE-2026-59891. PoCs published by gyubin02.
AI-analyzed exploit summary This repository provides a detailed technical analysis and regression test suite for CVE-2026-59891, a credential selection vulnerability in the @sigstore/oci library (versions <= 0.7.0). The code demonstrates the vulnerability by showing how credentials are incorrectly selected and transmitted to unintended registries due to improper host matching in Docker config auths.
Description
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.
Exploits (1)
This repository provides a detailed technical analysis and regression test suite for CVE-2026-59891, a credential selection vulnerability in the @sigstore/oci library (versions <= 0.7.0). The code demonstrates the vulnerability by showing how credentials are incorrectly selected and transmitted to unintended registries due to improper host matching in Docker config auths.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H