CVE-2026-59891

Credential confusion in  @sigstore/oci  can leak registry credentials to an attacker-controlled registry

State
Published
Severity
9.6 Critical
Published
Jul 14, 2026
Updated
Jul 21, 2026
Reserved
Jul 7, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.6 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-522 Insufficiently Protected Credentials

Affected Products

ProductVersions
sigstore-jssigstore
  • < 0.7.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.