Vulnerability · Published Jul 17, 2026 · Assigned by GitHub_M

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

Low 2.1

In plain English

A low-severity server-side request forgery in oras-go from oras-project. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.1Low
Exploit odds (30 days)0.2%top 88.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-oras-oras-gono fix listedDEBIAN-CVE-2026-48978
Debian:13golang-oras-oras-gono fix listedDEBIAN-CVE-2026-48978
Debian:14golang-oras-oras-go2.6.2-1DEBIAN-CVE-2026-48978
Gooras.land/oras-gono fix listedGHSA-xf85-363p-868w
Gooras.land/oras-go/v22.6.1GHSA-xf85-363p-868w
Gooras.land/oras-go/v22.6.1GO-2026-5885
Ubuntu:24.04:LTSgolang-oras-oras-gono fix listedUBUNTU-CVE-2026-48978
Ubuntu:26.04:LTSgolang-oras-oras-gono fix listedUBUNTU-CVE-2026-48978
Ubuntu:26.10golang-oras-oras-gono fix listedUBUNTU-CVE-2026-48978

Affected products (as reported)

VendorProductVersions
oras-project oras-go < 2.6.1

Weakness: CWE-918, CWE-319 · Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

References