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.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.5%top 53.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
PyPIkhoj1.15.0GHSA-cf72-vg59-4j4h
PyPIkhoj1.15.0PYSEC-2026-1492

Affected products (as reported)

VendorProductVersions
khoj-ai khoj < 1.15.0

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

References