sigstore-jsの@sigstore/ociに認証情報が漏えいする脆弱性
Summary
@sigstore/ociは、アップロード先として指定された別のホストへレジストリの認証情報を送ってしまう脆弱性があります。悪意のあるレジストリや乗っ取られたレジストリを使うと、レジストリのベアラートークンや認証ヘッダーが攻撃者のホストに渡るおそれがあります。影響を受けるのはsigstore-jsの0.7.2より前の版で、0.7.2で修正されています。0.7.2以降の版へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
@sigstore/ociは、アップロード先として指定された別のホストへレジストリの認証情報を送ってしまう脆弱性があります。悪意のあるレジストリや乗っ取られたレジストリを使うと、レジストリのベアラートークンや認証ヘッダーが攻撃者のホストに渡るおそれがあります。影響を受けるのはsigstore-jsの0.7.2より前の版で、0.7.2で修正されています。0.7.2以降の版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| sigstoresigstore-js | — | Not listed |
| npm@sigstore/oci |
< 0.7.2→ 0.7.2 |
0.7.2 |
Original description The description as published by the source.
sigstore-js provides JavaScript libraries for interacting with Sigstore services. Prior to 0.7.2, packages/oci/src/registry.ts contains a RegistryClient.signIn() method that stores registry Authorization and Docker configuration headers as defaults on a shared HTTP client, while RegistryClient.uploadBlob() sends a fresh PUT to an absolute blob-upload Location supplied by the registry without checking that its origin or scheme matches the registry. A malicious or compromised registry can therefore direct a user pushing an artifact through attachArtifactToImage() to an attacker-controlled host and receive the registry bearer token, Basic credentials, or custom authentication headers. Redirect-time header stripping does not prevent the leak because the cross-host PUT is a new explicit request rather than a followed redirect. This is a residual of CVE-2026-59891, whose fix changed credential selection in credentials.ts but did not constrain where credentials are sent from registry.ts. Version 0.7.2 fixes the issue by separating registry credentials from client-wide defaults and sending them only to the registry origin.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com
- web github.com