{"id":"CVE-2026-118763","state":"PUBLISHED","title":"@sigstore/oci sends the registry Authorization header to a cross-host blob-upload Location","description":"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.","publishedAt":"2026-10-29T17:01:40.294Z","updatedAt":"2026-10-30T17:13:12.761Z","severity":{"score":7.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["sigstore sigstore-js"],"affected":[{"vendor":"sigstore","product":"sigstore-js","versions":[{"version":"< 0.7.2","status":"affected"}]}],"references":["https://github.com/sigstore/sigstore-js/security/advisories/GHSA-j63v-mwhm-56jx","https://github.com/sigstore/sigstore-js/pull/1762","https://github.com/sigstore/sigstore-js/commit/b855f46cfe81f26481c6d3f4b333dfd00f2fd1b1","https://github.com/sigstore/sigstore-js/commit/e4ca65c3ab3c675456ab9b0bd04217ceccad3558","https://github.com/sigstore/sigstore-js/releases/tag/@sigstore/oci@0.7.2"],"weaknesses":["CWE-522"],"ingestedAt":"2026-10-30T17:24:06.930Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/118xxx/CVE-2026-118763.json","commit":"e8328137ecf4069b095dab9de0403e0e5a96b5ec","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-118763","state":"PUBLISHED","datePublished":"2026-10-29T17:01:40.294Z","dateUpdated":"2026-10-30T17:13:12.761Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-28T19:20:05.017Z"},"containers":{"cna":{"title":"@sigstore/oci sends the registry Authorization header to a cross-host blob-upload Location","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"sigstore","product":"sigstore-js","versions":[{"version":"< 0.7.2","status":"affected"}]}],"references":[{"url":"https://github.com/sigstore/sigstore-js/security/advisories/GHSA-j63v-mwhm-56jx","name":"https://github.com/sigstore/sigstore-js/security/advisories/GHSA-j63v-mwhm-56jx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sigstore/sigstore-js/pull/1762","name":"https://github.com/sigstore/sigstore-js/pull/1762","tags":["x_refsource_MISC"]},{"url":"https://github.com/sigstore/sigstore-js/commit/b855f46cfe81f26481c6d3f4b333dfd00f2fd1b1","name":"https://github.com/sigstore/sigstore-js/commit/b855f46cfe81f26481c6d3f4b333dfd00f2fd1b1","tags":["x_refsource_MISC"]},{"url":"https://github.com/sigstore/sigstore-js/commit/e4ca65c3ab3c675456ab9b0bd04217ceccad3558","name":"https://github.com/sigstore/sigstore-js/commit/e4ca65c3ab3c675456ab9b0bd04217ceccad3558","tags":["x_refsource_MISC"]},{"url":"https://github.com/sigstore/sigstore-js/releases/tag/@sigstore/oci@0.7.2","name":"https://github.com/sigstore/sigstore-js/releases/tag/@sigstore/oci@0.7.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-522","lang":"en","description":"CWE-522: Insufficiently Protected Credentials","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-29T17:01:40.294Z"},"source":{"advisory":"GHSA-j63v-mwhm-56jx","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-30T15:20:32.038162Z","id":"CVE-2026-118763","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-30T17:13:12.761Z"}}]}}}