CVE-2026-55062: Gitlab.com/uniget org/cli Path Traversal Vulnerability
MODERATECVE-2026-55062 is a MODERATE path traversal vulnerability (CWE-23: Relative Path Traversal) affecting Gitlab.com/uniget org/cli libraries in the Go ecosystem. The issue involves uniget cli has path traversal in hook files - directory escape vulnerability. Remediation is available by upgrading affected packages to version 0.27.6.
CVE-2026-55062 at a Glance
How to Fix CVE-2026-55062
To remediate this vulnerability, upgrade all affected Gitlab.com/uniget org/cli dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade gitlab.com/uniget-org/cli to 0.27.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for gitlab.com/uniget-org/cli
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-55062, inspect your project dependencies for Gitlab.com/uniget org/cli:
inspect dependencies for gitlab.com/uniget-org/cli
Analyze the terminal output to locate any version of Gitlab.com/uniget org/cli in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.27.6), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-23: Relative Path Traversal, where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. In Gitlab.com/uniget org/cli, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-55062 Affected Gitlab.com/uniget org/cli Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gitlab.com/uniget-org/cli
|
Go |
< 0.27.6
|
0.27.6
|
References
Frequently Asked Questions
What is CVE-2026-55062?
Which Gitlab.com/uniget org/cli versions are affected?
What version fixes CVE-2026-55062?
Is gitlab.com/uniget-org/cli affected?
What CWE is associated with CVE-2026-55062?
How can I check Go dependencies for CVE-2026-55062?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m6jg-wr9m-cg2f",
"modified" : "2026-08-17T17:46:33Z",
"published" : "2026-08-17T17:46:33Z",
"aliases" : [ "CVE-2026-55062" ],
"summary" : "uniget CLI has Path Traversal in Hook Files - Directory Escape Vulnerability",
"details" : "### Summary\nPath 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).\n\n**Details**\nFile: [hooks.go](vscode-file://vscode-app/app/extra/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.html) `Lines 135-160`\n```\nhookFileName := args[0] // User input not validated\nhookFile = preInstallHooksDir + \"/\" + hookFileName // Direct concatenation\n```\n\nHook filenames are concatenated directly without sanitizing ../ sequences, allowing directory traversal.\n\n\n\n### PoC\n**Step 1:** Set cat as editor\n```\nexport EDITOR=\"cat\"\n```\n**Step 2:** Read /etc/passwd via path traversal\n\n```\n./uniget hooks edit --type=pre-install \"../../../../etc/passwd\"\n```\n\n**Step 3:** Output shows file contents\n```\nroot:x:0:0:root:/root:/bin/bash\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\n[...]\n```\n\n<img width=\"1014\" height=\"178\" alt=\"image\" src=\"https://github.com/user-attachments/assets/0db0fe7e-533b-4d8e-a346-81886ce866ab\" />",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "gitlab.com/uniget-org/cli"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.27.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/uniget-org/cli/security/advisories/GHSA-m6jg-wr9m-cg2f"
}, {
"type" : "WEB",
"url" : "https://github.com/uniget-org/cli/commit/7b4f18a9f00f0955f830c7ccf266ed0de5f9fd91"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/uniget-org/cli"
}, {
"type" : "WEB",
"url" : "https://github.com/uniget-org/cli/releases/tag/v0.27.6"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-23", "CWE-36", "CWE-73" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-17T17:46:33Z",
"nvd_published_at" : null
}
}