CVEvulnerability
CVE-2024-25639
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2024-07-08
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.9 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-77, CWE-79, CWE-80
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 configurations
• khoj khoj (< 1.13.0)
Related
References
- https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc Patch
- https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm Exploit, Vendor Advisory
- https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc Patch
- https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm Exploit, Vendor Advisory