Skip to content
Threat Feed
high advisory

Arbitrary File Write in CLI Bridge via Dangling Symlink Traversal

CLI Bridge versions prior to 0.0.2 are vulnerable to path traversal through improper symlink resolution, potentially allowing arbitrary file writes outside the intended workspace root.

CVE search metadata

CVE search record: CVE-2026-111045. Severity: high. CVSS: 7.5. KEV: no. Product: CLI Bridge (< 0.0.2). Brief: Arbitrary File Write in CLI Bridge via Dangling Symlink Traversal. Brief link: https://feed.craftedsignal.io/briefs/2026-10-cli-bridge-path-traversal/

CLI Bridge contains a critical path traversal vulnerability (CVE-2026-111045) that impacts filesystem security within the workspace root. The issue arises in the resolveSafePath function, which fails to properly validate paths when encountering a dangling symlink (a symlink pointing to a nonexistent target). Specifically, when fs.realpathSync throws an ENOENT exception, the logic incorrectly falls back to resolving only the parent directory and marks the symlink path as safe. Because the write_file operation subsequently follows these symlinks, an attacker can manipulate symlinks to write files to arbitrary locations outside the defined workspace boundary. This vulnerability is addressed in version 0.0.2.

Impact

Successful exploitation allows an attacker to bypass workspace isolation, leading to arbitrary file write operations. This can be leveraged to overwrite critical system configuration files, inject malicious code into application directories, or gain unauthorized persistent access to the underlying host system, depending on the permissions of the process running CLI Bridge.

Recommendation

  • Update CLI Bridge to version 0.0.2 or later immediately to incorporate the patch for CVE-2026-111045.
  • Audit filesystem access logs to identify attempts to write files outside of designated workspace directories.
  • Monitor for the creation of symbolic links within workspace environments that point to sensitive system directories or files.

Mitigations

Upgrade CLI Bridge to 0.0.2 or later

immediate IT Operations

CVE-2026-111045