Skip to content
OpenAdvisories
Medium · 5.4 CVE-2025-69207 EUVD-2025-206746GHSA-6whj-7qmg-86qjPYSEC-2026-1491

Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning

Published Feb 2, 2026 · Updated Feb 3, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
khoj-ai khoj < 2.0.0-beta.23 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI khoj <= 2.0.0b25.dev3 — GHSA-6whj-7qmg-86qj

References