CVE-2026-55062: Gitlab.com/uniget org/cli Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-m6jg-wr9m-cg2f
Advisory Summary

CVE-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

CVE Identifier CVE-2026-55062
GHSA Identifier GHSA-m6jg-wr9m-cg2f
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-23: Relative Path Traversal
Affected Product Gitlab.com/uniget org/cli
Package Ecosystem Go
Published Date
Last Updated

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.

gitlab.com/uniget-org/cli fixed: 0.27.6
Upgrade gitlab.com/uniget-org/cli to 0.27.6
Verify Direct and Transitive Dependencies

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

### 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" />

CVE-2026-55062 Affected Gitlab.com/uniget org/cli Versions

1 component(s)
Fixed Versions:
0.27.6
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?
CVE-2026-55062 is a security vulnerability in Gitlab.com/uniget org/cli involving uniget CLI has Path Traversal in Hook Files - Directory Escape Vulnerability under CWE-23: Relative Path Traversal.
Which Gitlab.com/uniget org/cli versions are affected?
Affected versions include releases prior to 0.27.6 across affected packages: gitlab.com/uniget-org/cli.
What version fixes CVE-2026-55062?
Upgrading to 0.27.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gitlab.com/uniget-org/cli affected?
Yes, gitlab.com/uniget-org/cli is affected in releases prior to 0.27.6. Upgrade your dependency to 0.27.6 or later.
What CWE is associated with CVE-2026-55062?
CVE-2026-55062 is classified under CWE-23: Relative Path Traversal (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.).
How can I check Go dependencies for CVE-2026-55062?
Run the dependency tree command: 'inspect dependencies for gitlab.com/uniget-org/cli'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}