CVE-2025-69207

Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning

Published Feb 2, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6whj-7qmg-86qj Khoj has an IDOR in Notion OAuth Flow that Enables Index Poisoning
History
Type Values Removed Values Added
CPEs cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta10:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta11:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta12:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta13:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta14:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta15:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta16:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta17:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta18:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta19:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta1:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta20:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta21:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta22:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta2:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Khoj
Khoj khoj
Vendors & Products Khoj
Khoj khoj
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning
Weaknesses CWE-639
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 3, 2026, 3:45 PM
Reserved
Dec 29, 2025, 2:54 PM
Status
Analyzed
Published
Feb 2, 2026, 11:16 PM
Modified
Jun 17, 2026, 10:00 AM