Description
A Cross Site Scripting vulnerability exists in the Kimi AI v1.0 web interface's 'Preview' feature. The application fails to properly sanitize or encode HTML/JavaScript payloads generated by the AI model. When a user switches to the 'Preview' tab to view AI-generated code, the malicious payload is rendered directly into the DOM, leading to arbitrary JavaScript execution in the victim's browser session.
Published: 2026-06-03
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A Cross Site Scripting flaw exists in the Kimi AI v1.0 web interface's 'Preview' feature; when users switch to the Preview tab to view AI‑generated code, the application fails to sanitize or encode the content, and any injected HTML or JavaScript is rendered directly into the DOM. This flaw enables an attacker to cause arbitrary JavaScript code to execute within the victim's browser session, potentially allowing the attacker to steal session cookies, redirect the user, or perform actions on behalf of the victim without their knowledge.

Affected Systems

This vulnerability impacts the Kimi AI web interface, version 1.0, as distributed by MGTx2. The issue is confined to the Preview component that displays AI‑generated code; no other product versions or components are currently documented as affected.

Risk and Exploitability

Risk and exploitability: The CVSS score is 6.3, indicating a moderate severity, and the EPSS score is unavailable. The vulnerability is not listed in the CISA KEV catalog, so an exact exploitation probability cannot be derived from public metrics. Nonetheless, the XSS vulnerability is readily exploitable by any user who triggers the Preview tab, requiring only that the attacker inject malicious content through the AI model output. The attack vector is client‑side, and the potential consequence includes arbitrary script execution, session hijack, or manipulation of the victim's browser state. Given the ease of exploitation and the lack of required privileged access, this flaw poses a moderate risk to anyone using the affected system.

Generated by OpenCVE AI on June 3, 2026 at 20:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Implement server‑side sanitization or HTML escaping for all AI‑generated content before rendering it in the Preview view
  • Configure a restrictive Content‑Security‑Policy that disallows inline scripts and eval functions to block injected code
  • Upgrade to the patched version of Kimi AI when it becomes available from the vendor

Generated by OpenCVE AI on June 3, 2026 at 20:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 03 Jun 2026 21:00:00 +0000

Type Values Removed Values Added
Title Kimi AI v1.0 Web Interface Cross‑Site Scripting via Preview Feature

Wed, 03 Jun 2026 19:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 03 Jun 2026 18:45:00 +0000

Type Values Removed Values Added
Title Kimi AI v1.0 Web Interface Cross‑Site Scripting via Preview Feature
Weaknesses CWE-79

Wed, 03 Jun 2026 17:45:00 +0000

Type Values Removed Values Added
Description A Cross Site Scripting vulnerability exists in the Kimi AI v1.0 web interface's 'Preview' feature. The application fails to properly sanitize or encode HTML/JavaScript payloads generated by the AI model. When a user switches to the 'Preview' tab to view AI-generated code, the malicious payload is rendered directly into the DOM, leading to arbitrary JavaScript execution in the victim's browser session.
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-06-03T17:54:55.865Z

Reserved: 2026-04-06T00:00:00.000Z

Link: CVE-2026-39107

cve-icon Vulnrichment

Updated: 2026-06-03T17:52:29.357Z

cve-icon NVD

Status : Deferred

Published: 2026-06-03T18:16:23.377

Modified: 2026-06-04T16:28:59.003

Link: CVE-2026-39107

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-03T20:45:42Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')