{"cve":"CVE-2024-43396","nvd":{"published":"2024-08-20T21:15:14.897","modified":"2026-06-17T07:50:58.010","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://github.com/khoj-ai/khoj/commit/1c7a562880eeb7354325545d2cf6c5d1d1134812","https://github.com/khoj-ai/khoj/commit/55be90cdd2f9d6a09c8bf9ceea52fc36b9201626","https://github.com/khoj-ai/khoj/security/advisories/GHSA-cf72-vg59-4j4h"],"products":["khoj:khoj"],"source":"nvd","synced_at":"2026-10-19T21:54:16.205165117+00:00"},"epss":{"cve":"CVE-2024-43396","score":0.0055,"percentile":0.46029,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cf72-vg59-4j4h","url":"https://osv.dev/vulnerability/GHSA-cf72-vg59-4j4h","summary":"Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)","modified":"2026-07-07T17:56:50.241777115Z","packages":[{"ecosystem":"PyPI","name":"khoj","purl":"pkg:pypi/khoj","ranges":["<1.15.0"],"fixed":["1.15.0"]}]},{"id":"PYSEC-2026-1492","url":"https://osv.dev/vulnerability/PYSEC-2026-1492","summary":"Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)","modified":"2026-07-07T17:46:46.013975103Z","packages":[{"ecosystem":"PyPI","name":"khoj","purl":"pkg:pypi/khoj","ranges":["<1.15.0"],"fixed":["1.15.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}