Vulnerability · Published Aug 20, 2024 · Assigned by GitHub_M
CVE-2024-43396Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)
Medium 5.4
In plain English
A medium-severity cross-site scripting in khoj from khoj-ai. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | khoj | 1.15.0 | GHSA-cf72-vg59-4j4h |
| PyPI | khoj | 1.15.0 | PYSEC-2026-1492 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N