Junglewise Threat Intelligence

CVE-2026-50151: oras-project oras-go Credential Leak via Unvalidated Location Header

CVE-2026-50151 · Severity: high · CVSS 7.5 · Published 2026-07-17

Executive brief

oras-go is a software library used by developers to manage and move cloud-native artifacts (like container images) between different storage registries. A security flaw allows a malicious or compromised registry to trick the library into sending the user's private login credentials to a server controlled by an attacker. This could lead to the theft of sensitive access tokens or passwords used to manage corporate cloud infrastructure.

Technical details

A Server-Side Request Forgery (SSRF) and credential leak vulnerability exists in oras-go's 'blobStore.completePushAfterInitialPost' function within 'registry/remote/repository.go'. During a monolithic blob upload, the library follows a registry-provided 'Location' header and reuses the 'Authorization' header from the initial POST request for the subsequent PUT request. An attacker-controlled registry can return a cross-host 'Location' header, causing the library to forward the caller's credentials to an arbitrary external endpoint. The fix, introduced in version 2.6.1, validates that the redirect host matches the original request host and prevents scheme downgrades (HTTPS to HTTP).

Affected products

  • oras-project oras-go < 2.6.1

Timeline

  • 2026-04-26: patched: Fix merged into repository
  • 2026-06-08: advisory: Release v2.6.1 published
  • 2026-07-17: disclosed: CVE published to NVD

References

Related threats