Incorrect Authorization Affecting github.com/cli/cli/pkg/cmd/attestation/inspect package, versions <2.93.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (16th 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 Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCLICLIPKGCMDATTESTATIONINSPECT-17111417
  • published4 Jun 2026
  • disclosed29 May 2026
  • creditUnknown

Introduced: 29 May 2026

NewCVE-2026-48501  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade github.com/cli/cli/pkg/cmd/attestation/inspect to version 2.93.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization via host resolution in the CLI authentication layer. An attacker can obtain authentication tokens intended for GitHub or GitHub Enterprise by causing authenticated requests to be sent to external hosts, as the host normalization logic incorrectly treats certain non-GitHub endpoints as trusted and automatically attaches credentials to outgoing requests.

CVSS Base Scores

version 4.0
version 3.1