Read the docs
TI-2024-29045 Aliases CVE-2024-43396GHSA-cf72-vg59-4j4h

Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)

Priority LOW 25CWE-79Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

Khoj is an application that creates personal AI agents. The Automation feature allows a user to insert arbitrary HTML inside the task instructions, resulting in a Stored XSS. The q parameter for the /api/automation endpoint does not get correctly sanitized when rendered on the page, resulting in the ability of users to inject arbitrary HTML/JS. This vulnerability is fixed in 1.15.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0055 46th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed khoj (khoj-ai): 1.15.0khoj (PyPI): 1.15.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
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.15.01.15.0Patch availableCNA
—khoj (PyPI)before 1.15.01.15.0Patch availableGHSA-cf72-vg59-4j4h
  • khoj Vendorkhoj-ai Affected before 1.15.0 Fixed in 1.15.0 Patch available CNA
  • khoj (PyPI) Vendor— Affected before 1.15.0 Fixed in 1.15.0 Patch available GHSA-cf72-vg59-4j4h

CPE configurations NVD · 1

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

Remediation

  • Fix · CNA khoj (khoj-ai) Fixed in 1.15.0
  • Fix · GHSA-cf72-vg59-4j4h khoj (PyPI) Fixed in 1.15.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-43396
  2. 2026-10-03 Alias added: GHSA-cf72-vg59-4j4h

References

  • TI-2024-16867 Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients CVSS 3.1HIGH 7.5
  • TI-2025-42661 Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning CVSS 3.1HIGH 7.1

Sources