CVE-2026-17534
JSON

5.5medium

Kimi Code FetchURL SSRF protection bypass via DNS-resolving hostnames and redirects

Severity
5.5medium CVSS:3.1 by JFROG
Exploit likelihood
0.16% (higher than 3% of CVEs)
Published
Last changed
Assigned by
JFROG

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.

Affected

Product or packageVersionsReported by
@moonshot-ai/kimi-codebefore 0.27.0CVE List

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Kimi Code (@moonshot-ai/kimi-code) antes de 0.27.0 implementa el endurecimiento de SSRF de FetchURL como una lista de denegación estática de nombres de host y literales IP en assertSafeFetchTarget, sin resolver DNS ni revalidar hosts después de redirecciones HTTP. Un atacante que puede influir en una llamada a FetchURL (por ejemplo, mediante inyección de prompt) puede proporcionar un nombre de host público manipulado que se resuelve en loopback u otra dirección interna, o una URL pública que redirige a dicho objetivo, y así alcanzar servicios de red internos que la lista de denegación pretendía bloquear. FetchURL está incluido en el conjunto de herramientas de aprobación automática predeterminado, por lo que la llamada no requiere confirmación interactiva del usuario en modo manual.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-17534 changed 2026-07-27CVE Terms of Use
NVDCVE-2026-17534 changed 2026-10-24Public domain