Read the docs
TI-2024-16867 Aliases CVE-2024-25639

Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients

Priority HIGH 66CWE-80Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Cross-site scripting, Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-80 and CWE-77.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00573 47th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed khoj (khoj-ai): 1.13.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
khoj-aikhojbefore 1.13.01.13.0Patch availableCNA
  • khoj Vendorkhoj-ai Affected before 1.13.0 Fixed in 1.13.0 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*before 1.13.0Vulnerablekhoj-ai
  • cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:* Versions before 1.13.0 Vulnerable ·khoj-ai

Remediation

  • Fix · CNA khoj (khoj-ai) Fixed in 1.13.0

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-25639

References

  • TI-2025-42661 Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning CVSS 3.1HIGH 7.1
  • TI-2024-29045 Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature) CVSS 3.1MEDIUM 5.4

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences