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

- Severity: Critical 9.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-07-14T16:54:50.608Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-pf56-329r-95rw
- Weaknesses: CWE-522
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- sigstore sigstore-js: < 0.7.1
- @sigstore/oci (npm): before 0.7.1

## Every score

- GitHub_M: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/sigstore/sigstore-js/security/advisories/GHSA-pf56-329r-95rw> (web)
- <https://github.com/sigstore/sigstore-js/commit/85c58380758b97ce1b74ef470e55cc21f9d3aa89> (web)
- <https://github.com/sigstore/sigstore-js/releases/tag/%40sigstore%2Foci%400.7.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59891> (advisory)
- <https://github.com/sigstore/sigstore-js> (package)

## Sources

- CVE List: [CVE-2026-59891](https://www.cve.org/CVERecord?id=CVE-2026-59891), CVE Terms of Use, modified 2026-07-21
- GitHub Advisory Database: [GHSA-pf56-329r-95rw](https://github.com/advisories/GHSA-pf56-329r-95rw), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-59891](https://nvd.nist.gov/vuln/detail/CVE-2026-59891), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-59891 · Whole record: https://cve.day/CVE-2026-59891.json · Rebuilt by cve.day 2026-11-25T22:59:28.000Z
