PT-2024-30556 · Khoj · Khoj

·

CVE-2024-43396

·

Published

2024-08-20

·

Updated

2026-07-07

CVSS v3.1

5.4

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Khoj versions prior to 1.15.0
Description The Automation feature in Khoj allows users to insert arbitrary HTML inside 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, allowing users to inject arbitrary HTML/JS.
Recommendations For versions prior to 1.15.0, update to version 1.15.0 to fix the vulnerability. As a temporary workaround, consider restricting access to the /api/automation endpoint until the update is applied. Additionally, avoid using the q parameter in the affected API endpoint until the issue is resolved.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-43396
GHSA-CF72-VG59-4J4H
PYSEC-2026-1492

Affected Products

Khoj