CVE-2026-17534: CWE-918: Server-Side Request Forgery (SSRF) in MoonshotAI Kimi Code
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.
AI Analysis
Technical Summary
CVE-2026-17534 is an SSRF vulnerability in MoonshotAI Kimi Code before version 0.27.0. The vulnerability is due to insufficient SSRF protections in the FetchURL function, which relies on a static denylist of hostnames and IP literals without resolving DNS or re-checking hosts after HTTP redirects. This allows an attacker who can influence FetchURL calls (e.g., via prompt injection) to provide a public hostname that resolves to internal or loopback addresses or a public URL that redirects to such targets, thereby enabling access to internal network services that the denylist was intended to block. The FetchURL call is auto-approved by default, increasing the risk of exploitation without user interaction.
Potential Impact
Successful exploitation allows an attacker to bypass SSRF protections and access internal network services that should be blocked, potentially leading to unauthorized information disclosure or interaction with internal systems. The vulnerability does not impact integrity or availability directly but compromises confidentiality by enabling internal network access through SSRF.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid using vulnerable versions of Kimi Code or disable the FetchURL function if possible. Additional mitigations include restricting network access from the application to internal services and monitoring for unusual FetchURL usage. Since no official fix or patch link is provided, closely monitor MoonshotAI advisories for updates.
CVE-2026-17534: CWE-918: Server-Side Request Forgery (SSRF) in MoonshotAI Kimi Code
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.
CVSS v3.1
Score 5.5medium
Affected software
pkg:github/@moonshot-ai/kimi-codeRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-17534 is an SSRF vulnerability in MoonshotAI Kimi Code before version 0.27.0. The vulnerability is due to insufficient SSRF protections in the FetchURL function, which relies on a static denylist of hostnames and IP literals without resolving DNS or re-checking hosts after HTTP redirects. This allows an attacker who can influence FetchURL calls (e.g., via prompt injection) to provide a public hostname that resolves to internal or loopback addresses or a public URL that redirects to such targets, thereby enabling access to internal network services that the denylist was intended to block. The FetchURL call is auto-approved by default, increasing the risk of exploitation without user interaction.
Potential Impact
Successful exploitation allows an attacker to bypass SSRF protections and access internal network services that should be blocked, potentially leading to unauthorized information disclosure or interaction with internal systems. The vulnerability does not impact integrity or availability directly but compromises confidentiality by enabling internal network access through SSRF.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid using vulnerable versions of Kimi Code or disable the FetchURL function if possible. Additional mitigations include restricting network access from the application to internal services and monitoring for unusual FetchURL usage. Since no official fix or patch link is provided, closely monitor MoonshotAI advisories for updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- JFROG
- Date Reserved
- 2026-07-27T09:17:58.055Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a6731749c2644c7f8d9a56f
Added to database: 07/27/2026, 10:22:44 UTC
Last enriched: 07/30/2026, 01:47:46 UTC
Last updated: 09/10/2026, 18:10:35 UTC
Views: 128
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.