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

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-07-01T21:06:10.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-xf85-363p-868w, GO-2026-5885
- Related: CGA-fv49-j265-mmrc
- Weaknesses: CWE-319, CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- oras-project oras-go: < 2.6.1
- oras.land/oras-go/v2 (Go): before 2.6.1
- oras.land/oras-go (Go): up to 1.2.7

## Every score

- GitHub_M: CVSS:4.0 2.1 Low `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`
- GitHub: CVSS:4.0 Low `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

- <https://github.com/oras-project/oras-go/security/advisories/GHSA-xf85-363p-868w> (advisory, web)
- <https://github.com/oras-project/oras-go/commit/7a9f4b0b9558821b0422152ebe21ae56930fe764> (fix, web)
- <https://github.com/oras-project/oras-go/releases/tag/v2.6.1> (web)
- <https://github.com/oras-project/oras-go> (package)

## Sources

- CVE List: [CVE-2026-48978](https://www.cve.org/CVERecord?id=CVE-2026-48978), CVE Terms of Use, modified 2026-07-21
- GitHub Advisory Database: [GHSA-xf85-363p-868w](https://github.com/advisories/GHSA-xf85-363p-868w), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5885](https://pkg.go.dev/vuln/GO-2026-5885), CC-BY-4.0, modified 2026-08-25
- NVD: [CVE-2026-48978](https://nvd.nist.gov/vuln/detail/CVE-2026-48978), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-48978 · Whole record: https://cve.day/CVE-2026-48978.json · Rebuilt by cve.day 2026-11-25T22:59:28.531Z
