Credential confusion in @sigstore/oci can leak registry credentials to an attacker-controlled registry
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-522.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sigstore | sigstore-js | before 0.7.1 | 0.7.1 | Patch available | CNA |
| — | @sigstore/oci (npm) | before 0.7.1 | 0.7.1 | Patch available | GHSA-pf56-329r-95rw |
- sigstore-js Vendorsigstore Affected before 0.7.1 Fixed in 0.7.1 Patch available CNA
- @sigstore/oci (npm) Vendor— Affected before 0.7.1 Fixed in 0.7.1 Patch available GHSA-pf56-329r-95rw
Remediation
- Fix · CNA sigstore-js (sigstore) Fixed in 0.7.1
- Fix · GHSA-pf56-329r-95rw @sigstore/oci (npm) Fixed in 0.7.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-59891
- 2026-10-03 Alias added: GHSA-pf56-329r-95rw
References
More sigstore vulnerabilities
- TI-2022-16356 False positive signature verification in cosign CVSS 3.1CRITICAL 9.8
- TI-2026-36084 sigstore-js: `certificateOIDs` verification constraints are silently dropped and never enforced CVSS 3.1HIGH 7.5
- TI-2024-19670 Cosign vulnerable to machine-wide denial of service via malicious artifacts CVSS 3.1HIGH 7.5
- TI-2026-18290 Fulcio vulnerable to Server-Side Request Forgery (SSRF) via MetaIssuer Regex Bypass CVSS 3.1MEDIUM 5.8
- TI-2026-36085 sigstore-js: Insufficient Verification of Data Authenticity CVSS 3.1MEDIUM 6.5
- TI-2024-19669 Cosign vulnerable to system-wide denial of service via malicious attachments CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-59891 · CVE Program
- CVE-2026-59891 · NVD
- FIRST EPSS
- GHSA-pf56-329r-95rw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences