Kimi Code FetchURL SSRF protection bypass via DNS-resolving hostnames and redirects
Summary
| CVE | CVE-2026-17534 |
|---|---|
| State | PUBLISHED |
| Assigner | JFROG |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-27 10:16:37 UTC |
| Updated | 2026-07-27 20:37:16 UTC |
| Description | Kimi Code (@moonshot-ai/kimi-code) before 0.27.0 implements FetchURL SSRF hardening as a static hostname and IP-literal denylist in assertSafeFetchTarget, without resolving DNS or re-validating hosts after HTTP redirects. An attacker who can influence a FetchURL call (for example via prompt injection) can supply a crafted public hostname that resolves to loopback or another internal address, or a public URL that redirects to such a target, and thereby reach internal network services that the denylist was intended to block. FetchURL is included in the default auto-approve tool set, so the call does not require interactive user confirmation in manual mode. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
EPSS: 0.001210000 probability, percentile 0.022930000 (date 2026-07-29)
Problem Types: CWE-918 | CWE-918 CWE-918: Server-Side Request Forgery (SSRF)
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.5 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N |
| 3.1 | CNA | CVSS | 5.5 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
HighPrivileges Required
NoneUser Interaction
RequiredScope
ChangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | MoonshotAI | Kimi Code | affected 0.27.0 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/MoonshotAI/kimi-code/commit/31449728b72df94e22bcb2de350a1e762... | [email protected] | github.com | |
| github.com/MoonshotAI/kimi-code | [email protected] | github.com | |
| github.com/MoonshotAI/kimi-code/pull/1791 | [email protected] | github.com | |
| github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Natan Nehorai (en)
CNA: JFrog Security Research (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-07-17T03:21:00.000Z | Fix merged in MoonshotAI/kimi-code#1791 (FetchURL SSRF hardening) |
| CNA | 2026-07-17T12:48:00.000Z | Fix released in @moonshot-ai/[email protected] |
| CNA | 2026-07-16T08:15:00.000Z | Issue reported to Moonshot AI |
Solutions
CNA: Upgrade to Kimi Code 0.27.0 or later. The fix resolves hostnames via DNS and rejects addresses in loopback, RFC1918, link-local, CGNAT, and ULA ranges; follows redirects manually with per-hop revalidation; and pins connections to the validated resolved addresses to reduce DNS-rebinding (TOCTOU) races.
There are currently no legacy QID mappings associated with this CVE.