{"answers":{"affected":"6 open source packages ship an affected version, including github.com/cli/cli and github.com/cli/cli/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45803 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-45803 is a low-severity command injection vulnerability in cli, published on 15 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-45803 and fix it if it is affected.\n\nWhat it is: CVE-2026-45803 is a low-severity command injection vulnerability in cli, published on 15 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45803 exists.\n\nAffected packages and fixed versions:\n- github.com/cli/cli (Go): affected from 1.6.0; no fix listed\n- github.com/cli/cli (Go): affected from 1.6.0 up to 1.14.0; no fix listed\n- github.com/cli/cli (Go): affected from 1.6.0 up to 1.14.0; no fix listed\n- github.com/cli/cli/v2 (Go): affected all versions; fixed in 2.92.0\n- github.com/cli/cli/v2 (Go): affected all versions; fixed in 2.92.0\n- github.com/cli/cli/v2 (Go): affected all versions; fixed in 2.92.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-45803/ (Markdown: https://insights.sbomify.com/CVE-2026-45803/index.md)","id":"CVE-2026-45803","markdown":"https://insights.sbomify.com/CVE-2026-45803/index.md","name":"CVE-2026-45803","record":{"aliases":["AZL-87048","DEBIAN-CVE-2026-45803","GHSA-crc3-h8v6-qh57","GO-2026-5335","UBUNTU-CVE-2026-45803"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","other"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub CLI","requires_auth":"low_privilege","summary":"Attackers can inject terminal escape sequences into GitHub Actions logs, potentially executing arbitrary commands or manipulating the terminal when users view logs.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cli","vendor":"github"}],"cvss":{"score":3.5,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"description":"`gh` is GitHub’s official command line tool. From 1.6.0 to before 2.92.0, a security vulnerability has been identified in GitHub CLI that could allow terminal escape sequence injection when users view GitHub Actions workflow logs using gh run view --log or gh run view --log-failed. The vulnerability stems from the way GitHub CLI handles raw Actions log output. The gh run view --log and gh run view --log-failed commands stream workflow log lines to stdout or the configured pager without sanitizing terminal control sequences. An attacker who can influence GitHub Actions log content, for example via a PR triggered workflow, can embed escape sequences that are replayed in the user's terminal when they inspect the run. Depending on the victim's terminal emulator, injected sequences could change the window title, manipulate on screen content, or in some terminal emulators (such as screen) potentially execute arbitrary commands. This vulnerability is fixed in 2.92.0.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"gh: GitHub Actions log output in `gh run view` allows terminal escape sequence injection","id":"CVE-2026-45803","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"Diffusers: TOCTOU Trust Remote Code Bypass","id":"CVE-2026-45804"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["1.6.0"],"last_affected":[],"package":"github.com/cli/cli","purl":"pkg:golang/github.com/cli/cli","source":"GO-2026-5335"},{"ecosystem":"Go","fixed":[],"introduced":["1.6.0"],"last_affected":["1.14.0"],"package":"github.com/cli/cli","purl":null,"source":"GHSA-crc3-h8v6-qh57"},{"ecosystem":"Go","fixed":[],"introduced":["1.6.0"],"last_affected":["1.14.0"],"package":"github.com/cli/cli","purl":"pkg:golang/github.com/cli/cli","source":"GHSA-crc3-h8v6-qh57"},{"ecosystem":"Go","fixed":["2.92.0"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli/v2","purl":null,"source":"GHSA-crc3-h8v6-qh57"},{"ecosystem":"Go","fixed":["2.92.0"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli/v2","purl":"pkg:golang/github.com/cli/cli/v2","source":"GHSA-crc3-h8v6-qh57"},{"ecosystem":"Go","fixed":["2.92.0"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli/v2","purl":"pkg:golang/github.com/cli/cli/v2","source":"GO-2026-5335"}],"prev":{"headline":"FPDI: Memory Exhaustion and Endless Loop in FPDI leads to Denial of Service","id":"CVE-2026-45802"},"products":["cli"],"published":"2026-05-15","related":[{"cvss_score":8,"headline":"Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer","id":"CVE-2024-52308","kev_date_added":null,"published":"2024-11-14"},{"cvss_score":7.4,"headline":"GitHub CLI tokens leak via `gh attestation` commands","id":"CVE-2026-48501","kev_date_added":null,"published":"2026-05-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-15","vendors":["cli"]},"summary":"Attackers can inject terminal escape sequences into GitHub Actions logs, potentially executing arbitrary commands or manipulating the terminal when users view logs.","url":"https://insights.sbomify.com/CVE-2026-45803/"}