XSS in Khoj
CVE-2024-43396
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.005 (43.9th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 44th percentile — 43.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Khoj
- Khoj-Ai Khoj — versions < 1.15.0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2024-43396?
- CVE-2024-43396 is a medium-severity vulnerability in Khoj, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2024-08-20.
- How severe is CVE-2024-43396?
- Medium severity. CVSS v3 base score is 5.4 out of 10.