CVE-2026-48978

oras-go: Malicious registry can hijack Bearer token realm to exfiltrate credentials and refresh tokens

State
Published
Severity
2.1 Low
Published
Jul 17, 2026
Updated
Jul 21, 2026
Reserved
May 26, 2026

Read the record on cve.org

Description

oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, auth.Client follows the realm URL from a registry's WWW-Authenticate: Bearer challenge without validating the scheme or host, allowing a malicious or compromised registry to cause SSRF to internal networks such as http://169.254.169.254/, http://10.0.0.x/, and http://127.0.0.1/, or to downgrade a registry contacted over https:// to an http:// token endpoint in registry/remote/auth/client.go through Client.Do(), Client.fetchBearerToken(), fetchDistributionToken, and fetchOAuth2Token. This issue is fixed in version 2.6.1.

Scores

CVSSScoreVectorSource
4.02.1 LowCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-918 Server-Side Request Forgery (SSRF)
  • CWE-319 Cleartext Transmission of Sensitive Information

Affected Products

ProductVersions
oras-gooras-project
  • < 2.6.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.