What’s Vulnerable › Vulnerabilities
CVE-2025-69207: Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-02-02 · updated 2026-06-17
- Weakness: CWE-639
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
- khoj-ai khoj: before 2.0.0; 2.0.0-beta1, 2.0.0-beta10, 2.0.0-beta11, 2.0.0-beta12, 2.0.0-beta13, 2.0.0-beta14 (+9) — fixed in 2.0.0
How to fix
Upgrade to a fixed version: khoj-ai khoj 2.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748b
- https://github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23
- https://github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj
Get alerted when CVE-2025-69207 or the next vulnerability affects your stack