CVE-2026-39107 Cross-site scripting in n/a
Attackers can execute arbitrary JavaScript in victim browsers via unsanitized AI-generated code in the Preview tab.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-39107?
CVE-2026-39107 is a medium-severity cross-site scripting vulnerability in n/a, published on 3 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-39107?
How do I fix CVE-2026-39107?
No fix has been published for CVE-2026-39107 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-39107 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39107 exists.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-22c2-92rp-fgpf.