Auth bypass in Khoj
CVE-2025-69207
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.
Vulnerability class: IDOR (Insecure Direct Object Reference)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L.
EPSS exploit prediction
EPSS: 0.004 (34.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 34th percentile — 34.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: +0.000
Affected products
- Khoj — versions 2.0.0
- Khoj-Ai Khoj — versions < 2.0.0-beta.23
Weakness classification (CWE)
References
- github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj (Exploit, Vendor Advisory)
- github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748b (Patch)
- github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23 (Product, Release Notes)
Frequently asked questions
- What is CVE-2025-69207?
- CVE-2025-69207 is a medium-severity vulnerability in Khoj, classified under Authorization Bypass Through User-Controlled Key. CVSS score: 5.4/10. Published 2026-02-02.
- How severe is CVE-2025-69207?
- Medium severity. CVSS v3 base score is 5.4 out of 10.