---
id: CVE-2026-13508
title: A flaw has been found in khoj-ai khoj up to 2.0.0-beta.28
summary: >-
  A flaw has been found in khoj-ai khoj up to 2.0.0-beta.28. This impacts an
  unknown function of the file src/khoj/routers/api_chat.py of the component
  Conversation Sharing Handler. This manipulation of the argument
  conversation.agent caus…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L'
cwe:
  - CWE-285
  - CWE-863
published: '2026-06-28'
updated: '2026-06-28'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-13508'
references:
  - url: 'https://github.com/khoj-ai/khoj/'
    label: cna@vuldb.com
  - url: 'https://github.com/khoj-ai/khoj/issues/1327'
    label: cna@vuldb.com
  - url: 'https://github.com/khoj-ai/khoj/pull/1328'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/cve/CVE-2026-13508'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/submit/838812'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/374516'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/374516/cti'
    label: cna@vuldb.com
tags:
  - nvd
ingestedAt: '2026-06-29T13:42:12.030Z'
epss: 0.00286
epssPercentile: 0.21439
---

## Overview

A flaw has been found in khoj-ai khoj up to 2.0.0-beta.28. This impacts an unknown function of the file src/khoj/routers/api_chat.py of the component Conversation Sharing Handler. This manipulation of the argument conversation.agent causes incorrect authorization. Remote exploitation of the attack is possible. The exploit has been published and may be used. The pull request to fix this issue awaits acceptance.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
