Skip to main content
← All vulnerabilities
CVE-2025-69207GHSA-6WHJ-7QMG-86QJPYSEC-2026-1491

Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.0-beta.23
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • khoj-ai khoj

    fixed in 2.0.0-beta.23

  • khojPyPI

    through 2.0.0b25.dev3

References 3

GitHub · khoj-ai/khoj