Directory Traversal Affecting gemini-cli package, versions <0.37.0-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.46% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-GEMINICLI-15986375
  • published12 Apr 2026
  • disclosed8 Apr 2026

Introduced: 8 Apr 2026

CVE-2026-39407  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Chainguard gemini-cli to version 0.37.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gemini-cli package and not the gemini-cli package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.12, a path handling inconsistency in serveStatic allows protected static files to be accessed by using repeated slashes (//) in the request path. When route-based middleware (e.g., /admin/*) is used for authorization, the router may not match paths containing repeated slashes, while serveStatic resolves them as normalized paths. This can lead to a middleware bypass. This vulnerability is fixed in 4.12.12.

CVSS Base Scores

version 3.1