Search

Find a vulnerability

Search criteria

    9 vulnerabilities found for khoj by khoj

    FKIE_CVE-2025-69207

    Vulnerability from fkie_nvd - Published: 2026-02-02 23:16 - Updated: 2026-06-17 10:00
    Summary
    Khoj is a self-hostable artificial intelligence app. Prior to 2.0.0-beta.23, an IDOR in the Notion OAuth callback allows an attacker to hijack any user's Notion integration by manipulating the state parameter. The callback endpoint accepts any user UUID without verifying the OAuth flow was initiated by that user, allowing attackers to replace victims' Notion configurations with their own, resulting in data poisoning and unauthorized access to the victim's Khoj search index. This attack requires knowing the user's UUID which can be leaked through shared conversations where an AI generated image is present. This vulnerability is fixed in 2.0.0-beta.23.
    Impacted products
    Vendor Product Version
    khoj khoj *
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0
    khoj khoj 2.0.0

    {
      "affected": [
        {
          "affectedData": [
            {
              "product": "khoj",
              "vendor": "khoj-ai",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 2.0.0-beta.23"
                }
              ]
            }
          ],
          "source": "security-advisories@github.com"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "A9CE4C83-56C9-4462-A518-BCE7A3897A2A",
                  "versionEndExcluding": "2.0.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta1:*:*:*:*:*:*",
                  "matchCriteriaId": "C0BE025F-8573-4291-905B-256671BFAB7D",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta10:*:*:*:*:*:*",
                  "matchCriteriaId": "4EA2E60E-6469-40B9-83E2-BBCF923549F7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta11:*:*:*:*:*:*",
                  "matchCriteriaId": "3C9D04DA-963D-461E-899D-F64B5C71EF98",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta12:*:*:*:*:*:*",
                  "matchCriteriaId": "43E2D186-FF64-44E9-8BCD-9734CE2231B6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta13:*:*:*:*:*:*",
                  "matchCriteriaId": "A13043D0-3CA8-4953-B690-39D5E1945F65",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta14:*:*:*:*:*:*",
                  "matchCriteriaId": "F980D862-1935-40E7-B4DD-908B6896978F",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta15:*:*:*:*:*:*",
                  "matchCriteriaId": "6CDA5B55-E929-42ED-A1CB-F8F1949D3C2D",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta16:*:*:*:*:*:*",
                  "matchCriteriaId": "D5F1AA06-718A-4813-83BA-0DDC21C62B84",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta17:*:*:*:*:*:*",
                  "matchCriteriaId": "AC92003D-2A89-42F7-9D70-5278C0B4CA69",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta18:*:*:*:*:*:*",
                  "matchCriteriaId": "824DA579-02F1-466C-9566-3A6A7D6519D2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta19:*:*:*:*:*:*",
                  "matchCriteriaId": "A97AE3A9-2F42-4A33-A499-C0FA5097876B",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta2:*:*:*:*:*:*",
                  "matchCriteriaId": "51815298-AFFA-462B-81A8-E3DDAA8FDEF1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta20:*:*:*:*:*:*",
                  "matchCriteriaId": "22A632CE-CF8B-4149-930E-B668148BCCF7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta21:*:*:*:*:*:*",
                  "matchCriteriaId": "1F039E17-0A1E-467E-BA47-3EB88F006C99",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:2.0.0:beta22:*:*:*:*:*:*",
                  "matchCriteriaId": "3B9D57A9-1E32-4F62-80D7-A0C01F84793A",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "Khoj is a self-hostable artificial intelligence app. Prior to 2.0.0-beta.23, an IDOR in the Notion OAuth callback allows an attacker to hijack any user\u0027s Notion integration by manipulating the state parameter. The callback endpoint accepts any user UUID without verifying the OAuth flow was initiated by that user, allowing attackers to replace victims\u0027 Notion configurations with their own, resulting in data poisoning and unauthorized access to the victim\u0027s Khoj search index. This attack requires knowing the user\u0027s UUID which can be leaked through shared conversations where an AI generated image is present. This vulnerability is fixed in 2.0.0-beta.23."
        },
        {
          "lang": "es",
          "value": "Khoj es una aplicaci\u00f3n de inteligencia artificial autoalojable. Antes de la 2.0.0-beta.23, una IDOR en la devoluci\u00f3n de llamada de OAuth de Notion permite a un atacante secuestrar la integraci\u00f3n de Notion de cualquier usuario manipulando el par\u00e1metro state. El endpoint de devoluci\u00f3n de llamada acepta cualquier UUID de usuario sin verificar que el flujo de OAuth fue iniciado por ese usuario, permitiendo a los atacantes reemplazar las configuraciones de Notion de las v\u00edctimas con las suyas propias, lo que resulta en envenenamiento de datos y acceso no autorizado al \u00edndice de b\u00fasqueda de Khoj de la v\u00edctima. Este ataque requiere conocer el UUID del usuario, que puede filtrarse a trav\u00e9s de conversaciones compartidas donde una imagen generada por IA est\u00e1 presente. Esta vulnerabilidad est\u00e1 corregida en la 2.0.0-beta.23."
        }
      ],
      "id": "CVE-2025-69207",
      "lastModified": "2026-06-17T10:00:17.293",
      "metrics": {
        "cvssMetricV31": [
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "LOW",
              "baseScore": 5.4,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "LOW",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L",
              "version": "3.1"
            },
            "exploitabilityScore": 2.8,
            "impactScore": 2.5,
            "source": "security-advisories@github.com",
            "type": "Secondary"
          },
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 7.1,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "LOW",
              "integrityImpact": "HIGH",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N",
              "version": "3.1"
            },
            "exploitabilityScore": 2.8,
            "impactScore": 4.2,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ],
        "ssvcV203": [
          {
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "ssvcData": {
              "id": "CVE-2025-69207",
              "options": [
                {
                  "exploitation": "poc"
                },
                {
                  "automatable": "no"
                },
                {
                  "technicalImpact": "partial"
                }
              ],
              "role": "CISA Coordinator",
              "timestamp": "2026-02-03T15:44:16.914965Z",
              "version": "2.0.3"
            }
          }
        ]
      },
      "published": "2026-02-02T23:16:01.030",
      "references": [
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Patch"
          ],
          "url": "https://github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748b"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Product",
            "Release Notes"
          ],
          "url": "https://github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Exploit",
            "Vendor Advisory"
          ],
          "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj"
        }
      ],
      "sourceIdentifier": "security-advisories@github.com",
      "vulnStatus": "Analyzed",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-639"
            }
          ],
          "source": "security-advisories@github.com",
          "type": "Secondary"
        }
      ]
    }

    FKIE_CVE-2024-43396

    Vulnerability from fkie_nvd - Published: 2024-08-20 21:15 - Updated: 2026-06-17 07:50
    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.
    Impacted products
    Vendor Product Version
    khoj khoj *

    {
      "affected": [
        {
          "affectedData": [
            {
              "product": "khoj",
              "vendor": "khoj-ai",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.15.0"
                }
              ]
            }
          ],
          "source": "security-advisories@github.com"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "0590C0BC-7CF8-48D9-B353-ABF6BB2CCE04",
                  "versionEndExcluding": "1.15.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        },
        {
          "lang": "es",
          "value": "Khoj es una aplicaci\u00f3n que crea agentes personales de IA. La funci\u00f3n de Automatizaci\u00f3n permite al usuario insertar HTML arbitrario dentro de las instrucciones de la tarea, lo que da como resultado un XSS almacenado. El par\u00e1metro q para el endpoint /api/automation no se desinfecta correctamente cuando se representa en la p\u00e1gina, lo que da como resultado la capacidad de los usuarios de inyectar HTML/JS arbitrario. Esta vulnerabilidad se solucion\u00f3 en 1.15.0."
        }
      ],
      "id": "CVE-2024-43396",
      "lastModified": "2026-06-17T07:50:58.010",
      "metrics": {
        "cvssMetricV31": [
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 5.4,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "LOW",
              "integrityImpact": "LOW",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
              "version": "3.1"
            },
            "exploitabilityScore": 2.8,
            "impactScore": 2.5,
            "source": "security-advisories@github.com",
            "type": "Secondary"
          },
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 5.4,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "LOW",
              "integrityImpact": "LOW",
              "privilegesRequired": "LOW",
              "scope": "CHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
              "version": "3.1"
            },
            "exploitabilityScore": 2.3,
            "impactScore": 2.7,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ],
        "ssvcV203": [
          {
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "ssvcData": {
              "id": "CVE-2024-43396",
              "options": [
                {
                  "exploitation": "none"
                },
                {
                  "automatable": "no"
                },
                {
                  "technicalImpact": "partial"
                }
              ],
              "role": "CISA Coordinator",
              "timestamp": "2024-08-21T19:52:22.737517Z",
              "version": "2.0.3"
            }
          }
        ]
      },
      "published": "2024-08-20T21:15:14.897",
      "references": [
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Patch"
          ],
          "url": "https://github.com/khoj-ai/khoj/commit/1c7a562880eeb7354325545d2cf6c5d1d1134812"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Patch"
          ],
          "url": "https://github.com/khoj-ai/khoj/commit/55be90cdd2f9d6a09c8bf9ceea52fc36b9201626"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Exploit",
            "Vendor Advisory"
          ],
          "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-cf72-vg59-4j4h"
        }
      ],
      "sourceIdentifier": "security-advisories@github.com",
      "vulnStatus": "Analyzed",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-79"
            }
          ],
          "source": "security-advisories@github.com",
          "type": "Secondary"
        },
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-79"
            }
          ],
          "source": "nvd@nist.gov",
          "type": "Primary"
        }
      ]
    }

    FKIE_CVE-2024-25639

    Vulnerability from fkie_nvd - Published: 2024-07-08 15:15 - Updated: 2026-06-17 07:16
    Summary
    Khoj is an application that creates personal AI agents. The Khoj Obsidian, Desktop and Web clients inadequately sanitize the AI model's response and user inputs. This can trigger Cross Site Scripting (XSS) via Prompt Injection from untrusted documents either indexed by the user on Khoj or read by Khoj from the internet when the user invokes the /online command. This vulnerability is fixed in 1.13.0.
    Impacted products
    Vendor Product Version
    khoj khoj *

    {
      "affected": [
        {
          "affectedData": [
            {
              "product": "khoj",
              "vendor": "khoj-ai",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.13.0"
                }
              ]
            }
          ],
          "source": "security-advisories@github.com"
        },
        {
          "affectedData": [
            {
              "cpes": [
                "cpe:2.3:a:khojai:khoj:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "product": "khoj",
              "vendor": "khojai",
              "versions": [
                {
                  "lessThan": "1.13.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "2678B39E-00C3-4B4E-9857-FD3F90D30A7B",
                  "versionEndExcluding": "1.13.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "Khoj is an application that creates personal AI agents. The Khoj Obsidian, Desktop and Web clients inadequately sanitize the AI model\u0027s response and user inputs. This can trigger Cross Site Scripting (XSS) via Prompt Injection from untrusted documents either indexed by the user on Khoj or read by Khoj from the internet when the user invokes the /online command. This vulnerability is fixed in 1.13.0."
        },
        {
          "lang": "es",
          "value": "Khoj es una aplicaci\u00f3n que crea agentes personales de IA. Los clientes web, de escritorio y de Khoj Obsidian sanitizan inadecuadamente la respuesta del modelo de IA y las entradas de los usuarios. Esto puede activar Cross Site Scripting (XSS) mediante inyecci\u00f3n r\u00e1pida desde documentos que no son de confianza, ya sea indexados por el usuario en Khoj o le\u00eddos por Khoj desde Internet cuando el usuario invoca el comando /online. Esta vulnerabilidad se solucion\u00f3 en 1.13.0."
        }
      ],
      "id": "CVE-2024-25639",
      "lastModified": "2026-06-17T07:16:20.553",
      "metrics": {
        "cvssMetricV31": [
          {
            "cvssData": {
              "attackComplexity": "HIGH",
              "attackVector": "NETWORK",
              "availabilityImpact": "LOW",
              "baseScore": 5.9,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "NONE",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L",
              "version": "3.1"
            },
            "exploitabilityScore": 1.6,
            "impactScore": 4.2,
            "source": "security-advisories@github.com",
            "type": "Secondary"
          },
          {
            "cvssData": {
              "attackComplexity": "HIGH",
              "attackVector": "NETWORK",
              "availabilityImpact": "HIGH",
              "baseScore": 7.5,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
              "version": "3.1"
            },
            "exploitabilityScore": 1.6,
            "impactScore": 5.9,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ],
        "ssvcV203": [
          {
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "ssvcData": {
              "id": "CVE-2024-25639",
              "options": [
                {
                  "exploitation": "poc"
                },
                {
                  "automatable": "no"
                },
                {
                  "technicalImpact": "partial"
                }
              ],
              "role": "CISA Coordinator",
              "timestamp": "2024-07-08T14:55:37.305412Z",
              "version": "2.0.3"
            }
          }
        ]
      },
      "published": "2024-07-08T15:15:21.423",
      "references": [
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Patch"
          ],
          "url": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Exploit",
            "Vendor Advisory"
          ],
          "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Patch"
          ],
          "url": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Exploit",
            "Vendor Advisory"
          ],
          "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm"
        }
      ],
      "sourceIdentifier": "security-advisories@github.com",
      "vulnStatus": "Modified",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-80"
            }
          ],
          "source": "security-advisories@github.com",
          "type": "Secondary"
        },
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-77"
            },
            {
              "lang": "en",
              "value": "CWE-79"
            }
          ],
          "source": "nvd@nist.gov",
          "type": "Primary"
        }
      ]
    }

    CVE-2025-69207 (GCVE-0-2025-69207)

    Vulnerability from nvd – Published: 2026-02-02 21:16 – Updated: 2026-02-03 15:45
    VLAI
    Title
    Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning
    Summary
    Khoj is a self-hostable artificial intelligence app. Prior to 2.0.0-beta.23, an IDOR in the Notion OAuth callback allows an attacker to hijack any user's Notion integration by manipulating the state parameter. The callback endpoint accepts any user UUID without verifying the OAuth flow was initiated by that user, allowing attackers to replace victims' Notion configurations with their own, resulting in data poisoning and unauthorized access to the victim's Khoj search index. This attack requires knowing the user's UUID which can be leaked through shared conversations where an AI generated image is present. This vulnerability is fixed in 2.0.0-beta.23.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-02-03 15:44 UTC
    CWE
    • CWE-639 - Authorization Bypass Through User-Controlled Key
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7852 records in the last 180 days details
    Impacted products
    Vendor Product Version
    khoj-ai khoj Affected: < 2.0.0-beta.23
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2025-69207",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-02-03T15:44:16.914965Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-02-03T15:45:38.393Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "khoj",
              "vendor": "khoj-ai",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 2.0.0-beta.23"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Khoj is a self-hostable artificial intelligence app. Prior to 2.0.0-beta.23, an IDOR in the Notion OAuth callback allows an attacker to hijack any user\u0027s Notion integration by manipulating the state parameter. The callback endpoint accepts any user UUID without verifying the OAuth flow was initiated by that user, allowing attackers to replace victims\u0027 Notion configurations with their own, resulting in data poisoning and unauthorized access to the victim\u0027s Khoj search index. This attack requires knowing the user\u0027s UUID which can be leaked through shared conversations where an AI generated image is present. This vulnerability is fixed in 2.0.0-beta.23."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 5.4,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-639",
                  "description": "CWE-639: Authorization Bypass Through User-Controlled Key",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-02-02T21:16:49.041Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748b",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748b"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23"
            }
          ],
          "source": {
            "advisory": "GHSA-6whj-7qmg-86qj",
            "discovery": "UNKNOWN"
          },
          "title": "Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2025-69207",
        "datePublished": "2026-02-02T21:16:49.041Z",
        "dateReserved": "2025-12-29T14:54:59.520Z",
        "dateUpdated": "2026-02-03T15:45:38.393Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2024-43396 (GCVE-0-2024-43396)

    Vulnerability from nvd – Published: 2024-08-20 20:23 – Updated: 2024-08-21 19:52
    VLAI
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2024-08-21 19:52 UTC
    CWE
    • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7852 records in the last 180 days details
    Impacted products
    Vendor Product Version
    khoj-ai khoj Affected: < 1.15.0
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-43396",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-08-21T19:52:22.737517Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-08-21T19:52:35.357Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "khoj",
              "vendor": "khoj-ai",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.15.0"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 5.4,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-79",
                  "description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2024-08-20T20:23:05.660Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-cf72-vg59-4j4h",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-cf72-vg59-4j4h"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/commit/1c7a562880eeb7354325545d2cf6c5d1d1134812",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/commit/1c7a562880eeb7354325545d2cf6c5d1d1134812"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/commit/55be90cdd2f9d6a09c8bf9ceea52fc36b9201626",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/commit/55be90cdd2f9d6a09c8bf9ceea52fc36b9201626"
            }
          ],
          "source": {
            "advisory": "GHSA-cf72-vg59-4j4h",
            "discovery": "UNKNOWN"
          },
          "title": "Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2024-43396",
        "datePublished": "2024-08-20T20:23:05.660Z",
        "dateReserved": "2024-08-12T18:02:04.965Z",
        "dateUpdated": "2024-08-21T19:52:35.357Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2024-25639 (GCVE-0-2024-25639)

    Vulnerability from nvd – Published: 2024-07-08 14:24 – Updated: 2024-08-01 23:44
    VLAI
    Title
    Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients
    Summary
    Khoj is an application that creates personal AI agents. The Khoj Obsidian, Desktop and Web clients inadequately sanitize the AI model's response and user inputs. This can trigger Cross Site Scripting (XSS) via Prompt Injection from untrusted documents either indexed by the user on Khoj or read by Khoj from the internet when the user invokes the /online command. This vulnerability is fixed in 1.13.0.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2024-07-08 14:55 UTC
    CWE
    • CWE-80 - Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7852 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    khoj-ai khoj Affected: < 1.13.0
    Create a notification for this product.
    khojai khoj Affected: 0 , < 1.13.0 (custom)
        cpe:2.3:a:khojai:khoj:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "affected": [
              {
                "cpes": [
                  "cpe:2.3:a:khojai:khoj:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "khoj",
                "vendor": "khojai",
                "versions": [
                  {
                    "lessThan": "1.13.0",
                    "status": "affected",
                    "version": "0",
                    "versionType": "custom"
                  }
                ]
              }
            ],
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-25639",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-07-08T14:55:37.305412Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-07-08T15:00:37.872Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          },
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-01T23:44:09.829Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "name": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm",
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm"
              },
              {
                "name": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc",
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "khoj",
              "vendor": "khoj-ai",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.13.0"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Khoj is an application that creates personal AI agents. The Khoj Obsidian, Desktop and Web clients inadequately sanitize the AI model\u0027s response and user inputs. This can trigger Cross Site Scripting (XSS) via Prompt Injection from untrusted documents either indexed by the user on Khoj or read by Khoj from the internet when the user invokes the /online command. This vulnerability is fixed in 1.13.0."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 5.9,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-80",
                  "description": "CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2024-07-08T14:24:33.987Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc"
            }
          ],
          "source": {
            "advisory": "GHSA-h2q2-vch3-72qm",
            "discovery": "UNKNOWN"
          },
          "title": "Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2024-25639",
        "datePublished": "2024-07-08T14:24:33.987Z",
        "dateReserved": "2024-02-08T22:26:33.514Z",
        "dateUpdated": "2024-08-01T23:44:09.829Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2025-69207 (GCVE-0-2025-69207)

    Vulnerability from cvelistv5 – Published: 2026-02-02 21:16 – Updated: 2026-02-03 15:45
    VLAI
    Title
    Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning
    Summary
    Khoj is a self-hostable artificial intelligence app. Prior to 2.0.0-beta.23, an IDOR in the Notion OAuth callback allows an attacker to hijack any user's Notion integration by manipulating the state parameter. The callback endpoint accepts any user UUID without verifying the OAuth flow was initiated by that user, allowing attackers to replace victims' Notion configurations with their own, resulting in data poisoning and unauthorized access to the victim's Khoj search index. This attack requires knowing the user's UUID which can be leaked through shared conversations where an AI generated image is present. This vulnerability is fixed in 2.0.0-beta.23.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-02-03 15:44 UTC
    CWE
    • CWE-639 - Authorization Bypass Through User-Controlled Key
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7852 records in the last 180 days details
    Impacted products
    Vendor Product Version
    khoj-ai khoj Affected: < 2.0.0-beta.23
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2025-69207",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-02-03T15:44:16.914965Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-02-03T15:45:38.393Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "khoj",
              "vendor": "khoj-ai",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 2.0.0-beta.23"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Khoj is a self-hostable artificial intelligence app. Prior to 2.0.0-beta.23, an IDOR in the Notion OAuth callback allows an attacker to hijack any user\u0027s Notion integration by manipulating the state parameter. The callback endpoint accepts any user UUID without verifying the OAuth flow was initiated by that user, allowing attackers to replace victims\u0027 Notion configurations with their own, resulting in data poisoning and unauthorized access to the victim\u0027s Khoj search index. This attack requires knowing the user\u0027s UUID which can be leaked through shared conversations where an AI generated image is present. This vulnerability is fixed in 2.0.0-beta.23."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 5.4,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-639",
                  "description": "CWE-639: Authorization Bypass Through User-Controlled Key",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-02-02T21:16:49.041Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748b",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748b"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23"
            }
          ],
          "source": {
            "advisory": "GHSA-6whj-7qmg-86qj",
            "discovery": "UNKNOWN"
          },
          "title": "Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2025-69207",
        "datePublished": "2026-02-02T21:16:49.041Z",
        "dateReserved": "2025-12-29T14:54:59.520Z",
        "dateUpdated": "2026-02-03T15:45:38.393Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2024-43396 (GCVE-0-2024-43396)

    Vulnerability from cvelistv5 – Published: 2024-08-20 20:23 – Updated: 2024-08-21 19:52
    VLAI
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2024-08-21 19:52 UTC
    CWE
    • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7852 records in the last 180 days details
    Impacted products
    Vendor Product Version
    khoj-ai khoj Affected: < 1.15.0
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-43396",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-08-21T19:52:22.737517Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-08-21T19:52:35.357Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "khoj",
              "vendor": "khoj-ai",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.15.0"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 5.4,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-79",
                  "description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2024-08-20T20:23:05.660Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-cf72-vg59-4j4h",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-cf72-vg59-4j4h"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/commit/1c7a562880eeb7354325545d2cf6c5d1d1134812",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/commit/1c7a562880eeb7354325545d2cf6c5d1d1134812"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/commit/55be90cdd2f9d6a09c8bf9ceea52fc36b9201626",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/commit/55be90cdd2f9d6a09c8bf9ceea52fc36b9201626"
            }
          ],
          "source": {
            "advisory": "GHSA-cf72-vg59-4j4h",
            "discovery": "UNKNOWN"
          },
          "title": "Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2024-43396",
        "datePublished": "2024-08-20T20:23:05.660Z",
        "dateReserved": "2024-08-12T18:02:04.965Z",
        "dateUpdated": "2024-08-21T19:52:35.357Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2024-25639 (GCVE-0-2024-25639)

    Vulnerability from cvelistv5 – Published: 2024-07-08 14:24 – Updated: 2024-08-01 23:44
    VLAI
    Title
    Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients
    Summary
    Khoj is an application that creates personal AI agents. The Khoj Obsidian, Desktop and Web clients inadequately sanitize the AI model's response and user inputs. This can trigger Cross Site Scripting (XSS) via Prompt Injection from untrusted documents either indexed by the user on Khoj or read by Khoj from the internet when the user invokes the /online command. This vulnerability is fixed in 1.13.0.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2024-07-08 14:55 UTC
    CWE
    • CWE-80 - Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7852 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    khoj-ai khoj Affected: < 1.13.0
    Create a notification for this product.
    khojai khoj Affected: 0 , < 1.13.0 (custom)
        cpe:2.3:a:khojai:khoj:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "affected": [
              {
                "cpes": [
                  "cpe:2.3:a:khojai:khoj:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "khoj",
                "vendor": "khojai",
                "versions": [
                  {
                    "lessThan": "1.13.0",
                    "status": "affected",
                    "version": "0",
                    "versionType": "custom"
                  }
                ]
              }
            ],
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-25639",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-07-08T14:55:37.305412Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-07-08T15:00:37.872Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          },
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-01T23:44:09.829Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "name": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm",
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm"
              },
              {
                "name": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc",
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "khoj",
              "vendor": "khoj-ai",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.13.0"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Khoj is an application that creates personal AI agents. The Khoj Obsidian, Desktop and Web clients inadequately sanitize the AI model\u0027s response and user inputs. This can trigger Cross Site Scripting (XSS) via Prompt Injection from untrusted documents either indexed by the user on Khoj or read by Khoj from the internet when the user invokes the /online command. This vulnerability is fixed in 1.13.0."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 5.9,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-80",
                  "description": "CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2024-07-08T14:24:33.987Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/khoj-ai/khoj/security/advisories/GHSA-h2q2-vch3-72qm"
            },
            {
              "name": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/khoj-ai/khoj/commit/1dfd6d7391862d3564db7f4875216880b73cb6cc"
            }
          ],
          "source": {
            "advisory": "GHSA-h2q2-vch3-72qm",
            "discovery": "UNKNOWN"
          },
          "title": "Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2024-25639",
        "datePublished": "2024-07-08T14:24:33.987Z",
        "dateReserved": "2024-02-08T22:26:33.514Z",
        "dateUpdated": "2024-08-01T23:44:09.829Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }