CVE-2024-43396

Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)

Published Aug 20, 2024 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2558 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.
Github GHSA Github GHSA GHSA-cf72-vg59-4j4h Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)
History
Type Values Removed Values Added
First Time appeared Khoj
Khoj khoj
CPEs cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*
Vendors & Products Khoj
Khoj khoj
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 21, 2024, 7:52 PM
Reserved
Aug 12, 2024, 6:02 PM
Status
Analyzed
Published
Aug 20, 2024, 9:15 PM
Modified
Jun 17, 2026, 7:50 AM