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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-08T14:24:33.987Z
- Modified: 2026-06-17T07:16:20.553Z
- Weaknesses: CWE-77, CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- khoj-ai khoj: < 1.13.0
- khojai khoj: before 1.13.0
- khoj khoj: before 1.13.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm> (exploit, vendor-advisory)
- <https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc> (patch)

## Sources

- CVE List: [CVE-2024-25639](https://www.cve.org/CVERecord?id=CVE-2024-25639), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-25639](https://nvd.nist.gov/vuln/detail/CVE-2024-25639), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-25639 · Whole record: https://cve.day/CVE-2024-25639.json · Rebuilt by cve.day 2026-11-25T22:58:42.556Z
