# CVE-2026-50151: oras-go: credential forwarding via unvalidated Location header in blob upload

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A: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.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-01T21:35:45.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-jxpm-75mh-9fp7, GO-2026-5882
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, registry/remote/repository.go in blobStore.completePushAfterInitialPost follows a registry-controlled Location header during monolithic blob upload and reuses the Authorization header from the initial POST request for the subsequent PUT request, allowing a malicious registry to return a cross-host Location and receive the caller's credentials at an attacker-controlled endpoint. 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
- linuxfoundation oras: before 2.6.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/oras-project/oras-go/security/advisories/GHSA-jxpm-75mh-9fp7> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/oras-project/oras-go/pull/1152> (fix, issue-tracking, patch, web)
- <https://github.com/oras-project/oras-go/commit/4683c46ef078091544f5f55fd25102f002806991> (fix, patch, web)
- <https://github.com/oras-project/oras-go/releases/tag/v2.6.1> (release-notes, web)
- <https://github.com/oras-project/oras-go> (package)

## Sources

- CVE List: [CVE-2026-50151](https://www.cve.org/CVERecord?id=CVE-2026-50151), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-jxpm-75mh-9fp7](https://github.com/advisories/GHSA-jxpm-75mh-9fp7), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5882](https://pkg.go.dev/vuln/GO-2026-5882), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-50151](https://nvd.nist.gov/vuln/detail/CVE-2026-50151), Public domain, modified 2026-10-24

---

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