{"id":"CVE-2026-48978","state":"PUBLISHED","title":"oras-go: Malicious registry can hijack Bearer token realm to exfiltrate credentials and refresh tokens","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.","publishedAt":"2026-07-17T19:34:53.690Z","updatedAt":"2026-07-21T02:06:49.654Z","severity":{"score":2.1,"label":"Low","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["oras-project oras-go"],"affected":[{"vendor":"oras-project","product":"oras-go","versions":[{"version":"< 2.6.1","status":"affected"}]}],"references":["https://github.com/oras-project/oras-go/security/advisories/GHSA-xf85-363p-868w","https://github.com/oras-project/oras-go/commit/7a9f4b0b9558821b0422152ebe21ae56930fe764","https://github.com/oras-project/oras-go/releases/tag/v2.6.1"],"weaknesses":["CWE-918","CWE-319"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/48xxx/CVE-2026-48978.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-48978","state":"PUBLISHED","datePublished":"2026-07-17T19:34:53.690Z","dateUpdated":"2026-07-21T02:06:49.654Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-26T23:26:07.974Z"},"containers":{"cna":{"title":"oras-go: Malicious registry can hijack Bearer token realm to exfiltrate credentials and refresh tokens","descriptions":[{"lang":"en","value":"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":[{"vendor":"oras-project","product":"oras-go","versions":[{"version":"< 2.6.1","status":"affected"}]}],"references":[{"url":"https://github.com/oras-project/oras-go/security/advisories/GHSA-xf85-363p-868w","name":"https://github.com/oras-project/oras-go/security/advisories/GHSA-xf85-363p-868w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oras-project/oras-go/commit/7a9f4b0b9558821b0422152ebe21ae56930fe764","name":"https://github.com/oras-project/oras-go/commit/7a9f4b0b9558821b0422152ebe21ae56930fe764","tags":["x_refsource_MISC"]},{"url":"https://github.com/oras-project/oras-go/releases/tag/v2.6.1","name":"https://github.com/oras-project/oras-go/releases/tag/v2.6.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":2.1,"baseSeverity":"LOW","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-918","lang":"en","description":"CWE-918: Server-Side Request Forgery (SSRF)","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-319","lang":"en","description":"CWE-319: Cleartext Transmission of Sensitive Information","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-17T19:34:53.690Z"},"source":{"advisory":"GHSA-xf85-363p-868w","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-21T02:06:39.340086Z","id":"CVE-2026-48978","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-21T02:06:49.654Z"}}]}}}