Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)
CVE-2024-43396 · GHSA-cf72-vg59-4j4h · published 2024-08-20 · updated 2024-08-21
- Severity
- Medium
- CVSS score
- 5.4
- Chance of exploitation (EPSS)
- 0.55%
- Fixed in
- Not on PyPI
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
The Automation feature allows a user to insert arbitrary HTML inside the task instructions, resulting in a Stored XSS.
PyPI does not serve the fixed version this advisory names for khoj (1.15.0). The newest release on PyPI when checked on 2026-12-06 was 1.42.10; the advisory does not list it as affected.
Added a Content Security Policy to all config pages on the web client, including the automation page Used DOM scripting to construct all components on the config pages, including the automation page
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| khoj | PyPI | < 1.15.0 | 1.15.0 (not on PyPI) |
- CriticalJupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSPjupyter-server
- CriticalMalicious website can execute commands on the local system through XSS in the OpenCode web UIopencode-ai
- CriticalFlowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panelflowise
- CriticalMLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Executionmlflow
- CriticalCross-site Scripting in MLFlowmlflow
- HighPraisonAI: Prompt Injection Defense Bypassed for HIGH-Level Threatspraisonai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.