CVE-2024-25639
CVE-2024-25639 is a medium-severity vulnerability in Khoj with a CVSS 3.x base score of 5.9. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-77.
Key facts
- Severity: Medium (CVSS 3.x base score 5.9)
- EPSS exploit prediction: 1% (43rd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-22955
- Weakness: CWE-77
- Affected product: Khoj
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-25639?
- 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.
- How severe is CVE-2024-25639?
- CVE-2024-25639 has a CVSS 3.x base score of 5.9, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity none, and availability low.
- Is CVE-2024-25639 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (43rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-25639?
- CVE-2024-25639 affects Khoj. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-25639?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-25639 have an EU (EUVD) identifier?
- Yes. CVE-2024-25639 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-22955.
- When was CVE-2024-25639 published?
- CVE-2024-25639 was published on 2024-07-08 and last updated on 2026-06-17.
References
- https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc
- https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm
Affected products (1)
- cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*
More vulnerabilities in Khoj
- CVE-2025-69207 — Medium (CVSS 5.4): Khoj is a self-hostable artificial intelligence app. Prior to 2.0.0-beta.23, an IDOR in the Notion OAuth callback…
- CVE-2024-43396 — Medium (CVSS 5.4): Khoj is an application that creates personal AI agents. The Automation feature allows a user to insert arbitrary HTML…
Other CWE-77 (Command Injection) vulnerabilities
- CVE-2026-23652 — Critical (CVSS 10.0): Improper neutralization of special elements used in a command ('command injection') in Microsoft Power Pages allows an…
- CVE-2025-59818 — Critical (CVSS 10.0): This vulnerability allows authenticated attackers to execute arbitrary commands on the underlying system using the file…
- CVE-2025-64093 — Critical (CVSS 10.0): Remote Code Execution vulnerability that allows unauthenticated attackers to inject arbitrary commands into the…
- CVE-2025-64090 — Critical (CVSS 10.0): This vulnerability allows authenticated attackers to execute commands via the hostname of the device.
- CVE-2025-61492 — Critical (CVSS 10.0): A command injection vulnerability in the execute_command function of terminal-controller-mcp 0.1.7 allows attackers to…
- CVE-2025-10035 — Critical (CVSS 10.0): A deserialization vulnerability in the License Servlet of Fortra's GoAnywhere MFT allows an actor with a validly forged…