Vulnerability · Published Jul 17, 2026 · Assigned by GitHub_M
CVE-2026-50151oras-go: credential forwarding via unvalidated Location header in blob upload
High 7.5
In plain English
A high-severity server-side request forgery in oras-go from oras-project. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | golang-oras-oras-go | no fix listed | DEBIAN-CVE-2026-50151 |
| Debian:14 | golang-oras-oras-go | 2.6.2-1 | DEBIAN-CVE-2026-50151 |
| Go | oras.land/oras-go/v2 | 2.6.1 | GO-2026-5882 |
| Go | oras.land/oras-go/v2 | 2.6.1 | GHSA-jxpm-75mh-9fp7 |
| Ubuntu:24.04:LTS | golang-oras-oras-go | no fix listed | UBUNTU-CVE-2026-50151 |
| Ubuntu:26.04:LTS | golang-oras-oras-go | no fix listed | UBUNTU-CVE-2026-50151 |
| Ubuntu:26.10 | golang-oras-oras-go | no fix listed | UBUNTU-CVE-2026-50151 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| oras-project | oras-go | < 2.6.1 |
Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/oras-project/oras-go/security/advisories/GHSA-jxpm-75mh-9fp7 x_refsource_CONFIRM
- https://github.com/oras-project/oras-go/pull/1152 x_refsource_MISC
- https://github.com/oras-project/oras-go/commit/4683c46ef078091544f5f55fd25102f002806991 x_refsource_MISC
- https://github.com/oras-project/oras-go/releases/tag/v2.6.1 x_refsource_MISC