CVE-2024-25639 Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients
Attackers can execute arbitrary scripts in Khoj clients via prompt injection from untrusted documents or online content.
- 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-2024-25639?
CVE-2024-25639 is a medium-severity cross-site scripting vulnerability in khoj-ai khoj, published on 8 Jul 2024. 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
Khoj is an application that creates personal AI agents. The Khoj Obsidian, Desktop and Web clients inadequately sanitize the AI model's response and user inputs. This can trigger Cross Site Scripting (XSS) via Prompt Injection from untrusted documents either indexed by the user on Khoj or read by Khoj from the internet when the user invokes the /online command. This vulnerability is fixed in 1.13.0.
Which versions are affected by CVE-2024-25639?
It affects 1 product.
Products include Khoj Khoj.
How do I fix CVE-2024-25639?
No fix has been published for CVE-2024-25639 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-2024-25639 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-25639 exists.
Other vulnerabilities in khoj-ai khoj
Sources
Also known as GHSA-h2q2-vch3-72qm.