Vulnerability · Published Jul 8, 2024 · Assigned by GitHub_M

CVE-2024-25639Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients

Medium 5.9

In plain English

A medium-severity security flaw in khoj from khoj-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities).

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.6%top 52.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected products (as reported)

VendorProductVersions
khoj-ai khoj < 1.13.0

Weakness: CWE-80 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L

References