Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-25639
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 00:55 UTC · Revision 1
Source evidence
Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients
core-osv · Original sourcePublished 8 Jul 2024, 14:24 UTC
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.
osv:CVE-2024-25639
Complete source record
{
"id": "663bb1c863ed68cf9055b0ad1996ae5f4a4cadfac38a9ffc7d35c94764cb084f",
"url": "https://osv.dev/vulnerability/CVE-2024-25639",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients",
"summary": "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.",
"evidence": "osv:CVE-2024-25639",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-25639",
"aliases": [
"CVE-2024-25639",
"GHSA-h2q2-vch3-72qm"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/khoj-ai/khoj",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "85a343363bc83d36275a29894e1c01f7b7ef02b6"
},
{
"fixed": "1dfd6d7391862d3564db7f4875216880b73cb6cc"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.13.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "1dfd6d7391862d3564db7f4875216880b73cb6cc"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.12.1",
"1.12.0",
"1.11.2",
"1.11.1",
"1.11.0",
"1.10.2",
"1.10.1",
"1.10.0",
"1.9.0",
"1.8.0",
"1.7.0",
"1.6.1",
"1.6.0",
"1.5.1",
"1.5.0",
"1.4.0",
"1.3.0",
"1.2.1",
"1.2.0",
"1.1.0",
"1.0.1",
"1.0.0",
"0.14.0",
"0.13.0",
"0.12.3",
"0.12.2",
"rm",
"0.12.1",
"0.12.0",
"0.11.4",
"0.11.3",
"0.11.2",
"0.11.1",
"0.11.0",
"0.10.1",
"0.10.0",
"0.9.0",
"0.8.2",
"0.8.1",
"0.8.0",
"0.7.1",
"0.7.0",
"0.6.2",
"0.6.1",
"0.6.0",
"0.5.0",
"0.4.0",
"0.3.0",
"0.2.6",
"0.2.5",
"0.2.1",
"v0.2.0",
"v0.1.9",
"v0.1.8",
"v0.1.7",
"v0.1.6",
"v0.1.5-alpha"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-25639.json"
}
}
],
"modified": "2026-10-28T02:30:52.445778274Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25639.json",
"https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm",
"https://nvd.nist.gov/vuln/detail/CVE-2024-25639",
"https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc"
],
"provider_metadata": {
"cwe_ids": [
"CWE-80"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25639.json"
}
},
"related_cves": [
{
"value": "CVE-2024-25639",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521131,
"published_at": "2024-07-08T14:24:33.987+00:00"
}