{"id":"CVE-2026-50151","summary":"oras-go: credential forwarding via unvalidated Location header in blob upload","details":"oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, registry/remote/repository.go in blobStore.completePushAfterInitialPost follows a registry-controlled Location header during monolithic blob upload and reuses the Authorization header from the initial POST request for the subsequent PUT request, allowing a malicious registry to return a cross-host Location and receive the caller's credentials at an attacker-controlled endpoint. This issue is fixed in version 2.6.1.","aliases":["GHSA-jxpm-75mh-9fp7","GO-2026-5882"],"modified":"2026-07-25T03:56:25.176296054Z","published":"2026-07-17T19:41:11.648Z","related":["CGA-4fj2-773f-f3mg","openSUSE-SU-2026:11291-1","openSUSE-SU-2026:11292-1","openSUSE-SU-2026:11302-1","openSUSE-SU-2026:21395-1"],"database_specific":{"cwe_ids":["CWE-918"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50151.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/oras-project/oras-go/releases/tag/v2.6.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50151.json"},{"type":"ADVISORY","url":"https://github.com/oras-project/oras-go/security/advisories/GHSA-jxpm-75mh-9fp7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50151"},{"type":"FIX","url":"https://github.com/oras-project/oras-go/commit/4683c46ef078091544f5f55fd25102f002806991"},{"type":"FIX","url":"https://github.com/oras-project/oras-go/pull/1152"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/oras-project/oras-go","events":[{"introduced":"0"},{"fixed":"4683c46ef078091544f5f55fd25102f002806991"},{"fixed":"47b7c804cb38a4af659ec735e473d3854c63a3c0"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"2.6.1"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v2.6.0","v2.5.0","v2.4.0","v2.3.0","v2.2.0","v2.1.0","v2.0.2","v2.0.1","v2.0.0","v2.0.0-rc.6","v2.0.0-rc.5","v2.0.0-rc.4","v2.0.0-rc.3","v2.0.0-rc.2","v2.0.0-rc.1","v2.0.0-alpha","v0.5.0","v0.4.0","v0.3.0","v0.2.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50151.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}