Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-43396
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 02:08 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 20 Aug 2024, 20:23 UTC

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.

osv:CVE-2024-43396
Complete source record
{
  "id": "4df9de4cf9c1b8f97dcd343571a5d7204b69ba43839731bc3c6bd87a162334fc",
  "url": "https://osv.dev/vulnerability/CVE-2024-43396",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)",
    "summary": "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.",
    "evidence": "osv:CVE-2024-43396",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-43396",
      "aliases": [
        "CVE-2024-43396",
        "GHSA-cf72-vg59-4j4h",
        "PYSEC-2026-1492"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/khoj-ai/khoj",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4f89319b40cd05adeb6ff15a19b583eedfdd0520"
                },
                {
                  "fixed": "1c7a562880eeb7354325545d2cf6c5d1d1134812"
                },
                {
                  "fixed": "55be90cdd2f9d6a09c8bf9ceea52fc36b9201626"
                }
              ],
              "database_specific": {
                "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"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.14.0",
            "1.13.0",
            "1.12.1",
            "1.12.0",
            "1.11.2",
            "1.11.1",
            "1.11.0",
            "1.10.2",
            "1.10.1",
            "1.10.0",
            "1.9.0",
            "1.8.0",
            "1.7.0",
            "1.6.1",
            "1.6.0",
            "1.5.1",
            "1.5.0",
            "1.4.0",
            "1.3.0",
            "1.2.1",
            "1.2.0",
            "1.1.0",
            "1.0.1",
            "1.0.0",
            "0.14.0",
            "0.13.0",
            "0.12.3",
            "0.12.2",
            "rm",
            "0.12.1",
            "0.12.0",
            "0.11.4",
            "0.11.3",
            "0.11.2",
            "0.11.1",
            "0.11.0",
            "0.10.1",
            "0.10.0",
            "0.9.0",
            "0.8.2",
            "0.8.1",
            "0.8.0",
            "0.7.1",
            "0.7.0",
            "0.6.2",
            "0.6.1",
            "0.6.0",
            "0.5.0",
            "0.4.0",
            "0.3.0",
            "0.2.6",
            "0.2.5",
            "0.2.1",
            "v0.2.0",
            "v0.1.9",
            "v0.1.8",
            "v0.1.7",
            "v0.1.6",
            "v0.1.5-alpha"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43396.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.818074761Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43396.json",
        "https://github.com/khoj-ai/khoj/security/advisories/GHSA-cf72-vg59-4j4h",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-43396",
        "https://github.com/khoj-ai/khoj/commit/1c7a562880eeb7354325545d2cf6c5d1d1134812",
        "https://github.com/khoj-ai/khoj/commit/55be90cdd2f9d6a09c8bf9ceea52fc36b9201626"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43396.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-43396",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509381,
  "published_at": "2024-08-20T20:23:05.66+00:00"
}