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.
References (3)
Core 3
Core References
Vendor Advisory x_refsource_confirm
https://github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj
Patch x_refsource_misc
https://github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748b
Release Notes x_refsource_misc
https://github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23
Scores
CVSS v3
5.4
EPSS
0.0001
EPSS Percentile
1.2%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-639
Status
published
Products (3)
khoj/khoj
2.0.0 beta1 (15 CPE variants)
khoj/khoj
< 2.0.0
pypi/khoj
0PyPI
Published
Feb 02, 2026
Tracked Since
Feb 18, 2026