Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)
Description
Published to the GitHub Advisory Database
Aug 20, 2024
Reviewed
Aug 20, 2024
Published by the National Vulnerability Database
Aug 20, 2024
Last updated
Aug 21, 2024
Summary
The Automation feature allows a user to insert arbitrary HTML inside the task instructions, resulting in a Stored XSS.
Details
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.PoC
Impact
Stored XSS:
Fix
References