CVE-2026-39107

Published Jun 3, 2026 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Title Kimi AI v1.0 Web Interface Cross‑Site Scripting via Preview Feature
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'}

Type Values Removed Values Added
Title Kimi AI v1.0 Web Interface Cross‑Site Scripting via Preview Feature
Weaknesses CWE-79
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.

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jun 3, 2026, 5:54 PM
Reserved
Apr 6, 2026, 12:00 AM
Status
Deferred
Published
Jun 3, 2026, 6:16 PM
Modified
Jul 22, 2026, 8:10 PM