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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43396.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.15.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "1c7a562880eeb7354325545d2cf6c5d1d1134812"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "55be90cdd2f9d6a09c8bf9ceea52fc36b9201626"
}
],
"source": "REFERENCES_COMMIT"
}
]
}