CVE-2024-25639
published medium CVSS 3.1 · 5.9Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| khoj-ai | khoj | < 1.13.0 (affected) | GitHub_M · cna |
| khojai | khoj | 0 to < 1.13.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-80 CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
References
2Provider assertions
3GitHub_M · cna
Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5dedbea88e77a9605a570e1f977e611ca7d21102cc871305005f049dd3fb844b
- Ingested
- 23 Sep 2026, 08:20:06 UTC
- Source record
- Official CVE record