# CVE-2026-39107: Kimi AI cross-site scripting in Preview feature

Source: https://junglewise.ai/threats/cve-2026-39107-kimi-ai-cross-site-scripting-in-preview-feature  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-03. Updated: 2026-06-03  
License: CC BY 4.0 with a link back

CVE-2026-39107 · Severity: info · CVSS 0 · Published 2026-06-03

Kimi AI is an artificial intelligence platform used for generating content and code. A security flaw in its web interface allows malicious code generated by the AI to run directly in a user's browser when they use the 'Preview' feature. This could allow an attacker to steal session cookies, hijack user accounts, or perform unauthorized actions on behalf of the user.

Vendors: [Moonshot AI](https://junglewise.ai/threats/vendors/moonshot-ai).

## Quick answers

**Is CVE-2026-39107 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-39107 being exploited in the wild.

**How severe is CVE-2026-39107?** Informational severity, with a CVSS score of 0, published 3 June 2026.

**Which products and versions are affected?** Moonshot AI Kimi AI 1.0.

**Is there a fix for CVE-2026-39107?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-39107 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-39107?** Check whether you run Moonshot AI Kimi AI at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A stored-like Cross-Site Scripting (XSS) vulnerability exists in the 'Preview' feature of Kimi AI v1.0. The root cause is a failure to properly sanitize or encode HTML and JavaScript payloads generated by the AI model before rendering them in the Document Object Model (DOM). An attacker can craft a prompt that induces the AI to generate malicious scripts; when a user navigates to the 'Preview' tab to view this output, the script executes in the context of the victim's browser session. This can lead to session hijacking via cookie theft or unauthorized API requests.

## Affected products

- Kimi AI Kimi AI 1.0

## Timeline

- 2026-06-03: disclosed: CVE published to NVD

## References

- [https://github.com/MGTx2](https://github.com/MGTx2)
- [https://github.com/MGTx2/CVE-2026-39107](https://github.com/MGTx2/CVE-2026-39107)
