Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| khoj-ai | khoj | before 1.15.0 | 1.15.0 | Patch available | CNA |
| — | khoj (PyPI) | before 1.15.0 | 1.15.0 | Patch available | GHSA-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
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
- 2026-10-02 Threatist record created from CVE-2024-43396
- 2026-10-03 Alias added: GHSA-cf72-vg59-4j4h
References
Patch 2
More khoj-ai Khoj vulnerabilities
- 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
- CVE-2024-43396 · CVE Program
- CVE-2024-43396 · NVD
- FIRST EPSS
- GHSA-cf72-vg59-4j4h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences