CVE-2026-50151: Oras.land/oras go/v2 Oras-go Blob Upload Vulnerable To Vulnerability
HIGHCVE-2026-50151 is a HIGH (CVSS 7.5) oras-go blob upload vulnerable to vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Oras.land/oras go/v2 libraries in the Go ecosystem. The issue involves oras-go blob upload vulnerable to credential forwarding via unvalidated location header. Remediation is available by upgrading affected packages to version 2.6.1.
CVE-2026-50151 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-50151
To remediate this vulnerability, upgrade all affected Oras.land/oras go/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade oras.land/oras-go/v2 to 2.6.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for oras.land/oras-go/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-50151, inspect your project dependencies for Oras.land/oras go/v2:
inspect dependencies for oras.land/oras-go/v2
Analyze the terminal output to locate any version of Oras.land/oras go/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Oras.land/oras go/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-50151 Affected Oras.land/oras go/v2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
oras.land/oras-go/v2
|
Go |
< 2.6.1
|
2.6.1
|
References
Frequently Asked Questions
What is CVE-2026-50151?
Which Oras.land/oras go/v2 versions are affected?
What version fixes CVE-2026-50151?
Is oras.land/oras-go/v2 affected?
What is the CVSS score of CVE-2026-50151?
What CWE is associated with CVE-2026-50151?
How can I check Go dependencies for CVE-2026-50151?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jxpm-75mh-9fp7",
"modified" : "2026-07-01T21:35:45Z",
"published" : "2026-07-01T21:35:45Z",
"aliases" : [ "CVE-2026-50151" ],
"summary" : "oras-go blob upload vulnerable to credential forwarding via unvalidated Location header",
"details" : "## Summary\n\noras-go follows a registry-controlled `Location` header during the monolithic blob upload flow and reuses the `Authorization` header from the initial `POST` request for the subsequent `PUT` request. If a malicious registry returns a cross-host `Location`, oras-go can send the caller's credentials to an attacker-controlled endpoint.\n\n## Affected Versions\n\ntested: v2.6.0 (commit 03243809936cce826494b5506f724c6dc11115b1, as-of 2026-01-24)\nrange: unknown; likely affects earlier v2.x releases that include the same upload flow\n\n## Impact\n\nCredential leak to an attacker-controlled endpoint and client-side ssrf to a cross-host target.\n\n## Affected Component\n\n- `registry/remote/repository.go:878-916` (`blobStore.completePushAfterInitialPost`)\n\n## Reproduction\n\nAttachments include `poc.zip` with a local-only harness (no real registry required). It runs a fake registry server that returns a cross-host `Location` and a second server that records whether it received `Authorization`.\n\n```bash\nunzip -q -o poc.zip -d /tmp/poc\ncd /tmp/poc/poc-F-ORAS-LOCATION-UPLOAD-001\nmake canonical\nmake control\n```\n\n## Recommended Fix\n\n- validate `Location` before uploading (scheme + hostname + effective port) against the original request, or require an explicit opt-in allowlist for cross-host upload urls\n- never forward `Authorization` when the upload target changes host or scheme\n\n## references\n\n- security policy: https://github.com/oras-project/oras-go/security/policy\n- vulnerable code: `registry/remote/repository.go` (see `blobStore.completePushAfterInitialPost`)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "oras.land/oras-go/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/oras-project/oras-go/security/advisories/GHSA-jxpm-75mh-9fp7"
}, {
"type" : "WEB",
"url" : "https://github.com/oras-project/oras-go/pull/1152"
}, {
"type" : "WEB",
"url" : "https://github.com/oras-project/oras-go/commit/4683c46ef078091544f5f55fd25102f002806991"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/oras-project/oras-go"
}, {
"type" : "WEB",
"url" : "https://github.com/oras-project/oras-go/releases/tag/v2.6.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-01T21:35:45Z",
"nvd_published_at" : null
}
}