What’s Vulnerable › Vulnerabilities
CVE-2024-43396: Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-08-20 · updated 2026-06-17
- Weakness: CWE-79
Description
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.
Affected products
- khoj-ai khoj: before 1.15.0 — fixed in 1.15.0
How to fix
Upgrade to a fixed version: khoj-ai khoj 1.15.0. Check the vendor advisory for mitigations.
References
- https://github.com/khoj-ai/khoj/commit/1c7a562880eeb7354325545d2cf6c5d1d1134812
- https://github.com/khoj-ai/khoj/commit/55be90cdd2f9d6a09c8bf9ceea52fc36b9201626
- https://github.com/khoj-ai/khoj/security/advisories/GHSA-cf72-vg59-4j4h
Get alerted when CVE-2024-43396 or the next vulnerability affects your stack