CVE-2026-85732: oras-go Blind SSRF Vulnerability
MODERATECVE-2026-85732 is a MODERATE (CVSS 4.7) blind ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting oras-go libraries in the Go ecosystem. The issue involves blind ssrf via unvalidated link header url in pagination allows internal network probing. Remediation is available by upgrading affected packages to version 2.6.2.
CVE-2026-85732 at a Glance
Security Impact
CVSS: 4.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N).
How to Fix CVE-2026-85732
To remediate this vulnerability, upgrade all affected oras-go dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade oras.land/oras-go/v2 to 2.6.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for oras.land/oras-go/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-85732, inspect your project dependencies for oras-go:
inspect dependencies for oras.land/oras-go/v2
Analyze the terminal output to locate any version of oras-go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In oras-go, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-85732 Affected oras-go Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
oras.land/oras-go/v2
|
Go |
< 2.6.2
|
2.6.2
|
References
Frequently Asked Questions
What is CVE-2026-85732?
Which oras-go versions are affected?
What version fixes CVE-2026-85732?
Is oras.land/oras-go/v2 affected?
What is the CVSS score of CVE-2026-85732?
What CWE is associated with CVE-2026-85732?
How can I check Go dependencies for CVE-2026-85732?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h7vf-4x9w-h99v",
"modified" : "2026-09-17T17:16:02Z",
"published" : "2026-09-17T17:16:02Z",
"aliases" : [ "CVE-2026-85732" ],
"summary" : "oras-go: Blind SSRF via unvalidated Link header URL in pagination allows internal network probing",
"details" : "## Summary\n\noras-go's pagination helper `parseLink()` in `registry/remote/utils.go` follows the `Link` response header from a registry without validating the URL's host or scheme. When a malicious registry returns a `Link` header containing an absolute URL pointing to an arbitrary host (e.g., a cloud metadata endpoint), the client makes GET requests to that host from the victim's network.\n\nThis affects all pagination-based listing operations: Tags, Referrers, and Repositories (catalog).\n\n## Root Cause\n\n`parseLink()` at `registry/remote/utils.go:54` calls `resp.Request.URL.Parse(link)` which, for absolute URLs, returns the absolute URL unchanged. The result is passed directly to the next pagination loop iteration where `http.NewRequestWithContext()` creates a GET request to the attacker-specified URL. No host comparison, scheme validation, or IP filtering exists between `parseLink` output and the HTTP request.\n\n## Affected Code Paths\n\n- `registry/remote/repository.go:Tags()` calls `parseLink()` for next page URL\n- `registry/remote/repository.go:Referrers()` calls `parseLink()` for next page URL\n- `registry/remote/registry.go:Repositories()` calls `parseLink()` for next page URL\n\n## Impact\n\n**Blind SSRF from the victim's network.** A malicious registry operator can force any oras-go client that lists tags, referrers, or repositories to issue GET requests to arbitrary internal endpoints:\n\n- Cloud instance metadata endpoints for service discovery and IAM role enumeration\n- Internal HTTP services for port scanning and triggering side effects\n- If the victim's credential store maps credentials for the SSRF target host, those credentials are attached to the request (auth.Client looks up creds by request host)\n\nThe attacker cannot read the response body (it's parsed as JSON and fails), making this a blind SSRF. However, timing and error differences can confirm internal service existence.\n\n## Attack Chain\n\n1. Victim calls `repo.Tags()` / `repo.Referrers()` / `registry.Repositories()` against attacker-controlled registry\n2. Registry returns a valid first page + malicious Link header pointing to an internal endpoint\n3. `parseLink()` extracts the absolute URL with zero validation\n4. Pagination loop makes GET request to the internal endpoint from victim's network\n\n## PoC\n\n<details>\n<summary>Expand PoC</summary>\n\n```go\n// Malicious registry handler for /v2/repo/tags/list:\nfunc handler(w http.ResponseWriter, r *http.Request) {\n // Link header points to cloud metadata or internal service\n w.Header().Set(\"Link\", `<http://internal-service:8080/admin>; rel=\"next\"`)\n w.Header().Set(\"Content-Type\", \"application/json\")\n json.NewEncoder(w).Encode(map[string][]string{\"tags\": {\"v1\"}})\n}\n\n// Victim code:\nrepo, _ := remote.NewRepository(\"attacker-registry.io/repo\")\nrepo.Tags(ctx, \"\", func(tags []string) error { return nil })\n// Result: GET http://internal-service:8080/admin is made from victim's network\n```\n\n</details>\n\n## Suggested Fix\n\nValidate that the URL returned by `parseLink()` has the same host and scheme as the original request before using it for the next pagination request. Reject cross-host or scheme-downgrade URLs.\n\nReported by **zx (Jace)**",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "oras.land/oras-go/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.6.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/oras-project/oras-go/security/advisories/GHSA-h7vf-4x9w-h99v"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-85732"
}, {
"type" : "WEB",
"url" : "https://github.com/oras-project/oras-go/commit/31da1963f8c327dd089cd29faeae95cf0fc50842"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/oras-project/oras-go"
}, {
"type" : "WEB",
"url" : "https://github.com/oras-project/oras-go/releases/tag/v2.6.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-17T17:16:02Z",
"nvd_published_at" : "2026-09-16T17:18:16Z"
}
}