Incorrect Behavior Order: Validate Before Canonicalize 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.34% (27th 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-15986385
  • published12 Apr 2026
  • disclosed8 Apr 2026

Introduced: 8 Apr 2026

CVE-2026-39409  (opens in a new tab)
CWE-180  (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, ipRestriction() does not canonicalize IPv4-mapped IPv6 client addresses (e.g. ::ffff:127.0.0.1) before applying IPv4 allow or deny rules. In environments such as Node.js dual-stack, this can cause IPv4 rules to fail to match, leading to unintended authorization behavior. This vulnerability is fixed in 4.12.12.

CVSS Base Scores

version 3.1