Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gitlab.com/uniget-org/cli
  4. ›
  5. CVE-2026-55061

CVE-2026-55061: uniget CLI has an EDITOR Command Injection

August 17, 2026

The uniget CLI has a command injection vulnerability in hooks.go line 199 where strings.Split(editor, " “) naively parses the EDITOR environment variable without respecting shell syntax. An attacker can set EDITOR="/path/to/wrapper && id && echo” which gets split into separate arguments, allowing the wrapper script to execute arbitrary commands like id. This was successfully exploited to execute uid=1000(w4nn4d13), confirming code execution is possible. The vulnerability affects hook editing and breaks configurations with modern editors like VSCode.

Vulnerable Code:

editorWithArgs := strings.Split(editor, " ")

Location Context:

editor := os.Getenv("UNIGET_EDITOR")
if len(editor) == 0 {
editor = os.Getenv("EDITOR")
}
editorWithArgs := strings.Split(editor, " ")  // ← VULNERABLE
command := exec.Command(editorWithArgs[0], editorWithArgs[1:]...)

Issue: Naive space-splitting allows injection. EDITOR=“script && id && echo” splits into [“script”, “&&”, “id”, “&&”, “echo”] enabling command execution.

References

  • github.com/advisories/GHSA-qmcq-xw74-w667
  • github.com/uniget-org/cli/commit/7b4f18a9f00f0955f830c7ccf266ed0de5f9fd91
  • github.com/uniget-org/cli/releases/tag/v0.27.6
  • github.com/uniget-org/cli/security/advisories/GHSA-qmcq-xw74-w667
  • nvd.nist.gov/vuln/detail/CVE-2026-55061

Code Behaviors & Features

Detect and mitigate CVE-2026-55061 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.27.6

Fixed versions

  • 0.27.6

Solution

Upgrade to version 0.27.6 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

go/gitlab.com/uniget-org/cli/CVE-2026-55061.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:19 +0000.