{"id":"CVE-2024-43396","published":"2024-08-20T20:23:05Z","modified":"2024-08-21T19:52:35Z","title":"Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)","vendor":"khoj-ai","product":"khoj","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0055,"percentile":0.46923,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/khoj-ai/khoj/security/advisories/GHSA-cf72-vg59-4j4h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/khoj-ai/khoj/commit/1c7a562880eeb7354325545d2cf6c5d1d1134812","tags":["x_refsource_MISC"]},{"url":"https://github.com/khoj-ai/khoj/commit/55be90cdd2f9d6a09c8bf9ceea52fc36b9201626","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":9.38},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"khoj-ai","affectedVersions":[{"vendor":"khoj-ai","product":"khoj","versions":["< 1.15.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-21T19:52:22.737517Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"khoj","vulnerableRanges":["<1.15.0"],"patched":["1.15.0"],"from":["GHSA-cf72-vg59-4j4h","PYSEC-2026-1492"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in the Automation (Preview) feature of the Khoj personal AI agent application, where the q parameter for the /api/automation endpoint is not properly sanitised before being rendered on the page, allowing arbitrary HTML and JavaScript to be injected via task instructions. An attacker with network access and no authentication can plant the payload, which then executes in the browser of a user who is induced to interact with the affected page, such as by viewing the malicious automation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:38Z"},"euvd":{"id":"EUVD-2024-2558","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-43396","published":"2024-08-20","fixed":"1.15.0","kev":false},{"cve":"CVE-2024-52294","published":"2024-12-30","fixed":"1.29.0","kev":false,"link":{"from":"CVE-2024-43396","to":"CVE-2024-52294","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:khoj","fromFixed":"1.15.0","toFixed":"1.29.0","daysApart":132}]}}],"package":"PyPI:khoj"}}