CVE-2026-50151: CWE-918: Server-Side Request Forgery (SSRF) in oras-project oras-go
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.
AI Analysis
Technical Summary
The oras-go Go library for managing OCI artifacts contains an SSRF vulnerability (CWE-918) in the blobStore.completePushAfterInitialPost function within registry/remote/repository.go. Before version 2.6.1, the library blindly follows a Location header controlled by the registry during a monolithic blob upload process. It also reuses the Authorization header from the initial POST request when issuing the subsequent PUT request. This combination allows a malicious registry to redirect the PUT request to an attacker-controlled host and receive the caller's credentials. This vulnerability is addressed in oras-go version 2.6.1.
Potential Impact
An attacker controlling a malicious registry can exploit this SSRF vulnerability to redirect requests to arbitrary hosts and capture sensitive Authorization headers, leading to credential disclosure. The vulnerability does not affect integrity or availability but has a high confidentiality impact as it can leak credentials without requiring user interaction or privileges.
Mitigation Recommendations
Upgrade to oras-go version 2.6.1 or later, where this SSRF vulnerability is fixed. Since the vendor advisory does not provide other remediation levels or temporary fixes, applying the official patch version is the recommended action. Patch status is confirmed by the version update information.
CVE-2026-50151: CWE-918: Server-Side Request Forgery (SSRF) in oras-project oras-go
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.
CVSS v3.1
Score 7.5high
Affected software
pkg:golang/github.com/oras-project/oras-goRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The oras-go Go library for managing OCI artifacts contains an SSRF vulnerability (CWE-918) in the blobStore.completePushAfterInitialPost function within registry/remote/repository.go. Before version 2.6.1, the library blindly follows a Location header controlled by the registry during a monolithic blob upload process. It also reuses the Authorization header from the initial POST request when issuing the subsequent PUT request. This combination allows a malicious registry to redirect the PUT request to an attacker-controlled host and receive the caller's credentials. This vulnerability is addressed in oras-go version 2.6.1.
Potential Impact
An attacker controlling a malicious registry can exploit this SSRF vulnerability to redirect requests to arbitrary hosts and capture sensitive Authorization headers, leading to credential disclosure. The vulnerability does not affect integrity or availability but has a high confidentiality impact as it can leak credentials without requiring user interaction or privileges.
Mitigation Recommendations
Upgrade to oras-go version 2.6.1 or later, where this SSRF vulnerability is fixed. Since the vendor advisory does not provide other remediation levels or temporary fixes, applying the official patch version is the recommended action. Patch status is confirmed by the version update information.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-03T20:54:20.431Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5b5eb02d1edb114c7fb34a
Added to database: 07/18/2026, 11:08:32 UTC
Last enriched: 07/25/2026, 22:52:42 UTC
Last updated: 08/27/2026, 22:52:12 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.