Server-side Request Forgery (SSRF) Affecting github.com/oras-project/oras-go/v2/registry/remote/auth package, versions <2.6.1


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMORASPROJECTORASGOV2REGISTRYREMOTEAUTH-17808212
  • published3 Jul 2026
  • disclosed1 Jul 2026
  • creditUnknown

Introduced: 1 Jul 2026

CVE-2026-48978  (opens in a new tab)
CWE-319  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade github.com/oras-project/oras-go/v2/registry/remote/auth to version 2.6.1 or higher.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the realm parameter in the authentication process. An attacker can cause the client to send requests to internal network endpoints or transmit credentials over an unencrypted channel by controlling the value of the realm field in the WWW-Authenticate: Bearer challenge. This can be exploited by a malicious or compromised registry, or by a man-in-the-middle attacker on a plaintext connection.

CVSS Base Scores

version 4.0
version 3.1