CVE-2026-45803: GitHub CLI Terminal Escape Sequence Injection Vulnerability

github.com/cli/cli Updated 26 Jun 2026

Summary

25/06/2026
No i
Unrated
Not published

CVE-2026-45803: GitHub CLI: GitHub Actions log output in gh run view allows terminal escape sequence injection in github.com/cli/cli. Affects github.com/cli/cli versions >= 1.6.0. No fix is published. How to fix ↓

Also tracked for

The same CVE-2026-45803 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

GitHub CLI is a command-line tool that allows users to interact with GitHub from their terminal. It provides functionalities such as managing repositories, pull requests, and issues directly from the command line. The tool is widely used by developers for its efficiency and integration with GitHub's features. However, a vulnerability has been identified in the way GitHub Actions log output is handled in the gh run view command, which can lead to terminal escape sequence injection.

Vulnerability Detail

The vulnerability arises from the handling of log output in the GitHub CLI when executing the gh run view command. This flaw allows an attacker to inject terminal escape sequences, potentially leading to unauthorized command execution or manipulation of the terminal interface. The issue was introduced in version 1.6.0 of the GitHub CLI and affects both the main and v2 versions of the package. If exploited, this vulnerability could compromise the security of the user's terminal session and expose sensitive information.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid using the gh run view command until they have updated to the patched version. Additionally, users should be cautious about executing commands that may include untrusted log output.

Conclusion

The CVE-2026-45803 vulnerability in GitHub CLI poses a significant risk due to its potential for terminal escape sequence injection. Users are strongly advised to update to the latest patched version to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and alert for open-source vulnerabilities in real-time.

See every vulnerability recorded for github.com/cli/cli →

Share this vulnerability

FAQ

CVE-2026-45803 is a vulnerability in the GitHub CLI that allows terminal escape sequence injection through GitHub Actions log output.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Terminal escape sequences are special character sequences that control formatting, color, and other output options in terminal emulators.

If you cannot update the package immediately, avoid using the gh run view command and be cautious with untrusted log outputs.

More information can be found in the official Go vulnerability database at https://pkg.go.dev/vuln/GO-2026-5335.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/cli/cli.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback