Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
khojPyPI | <= 2.0.0b25.dev3 | — |
Affected products
2Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-6whj-7qmg-86qjghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-69207ghsaADVISORY
- github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748bghsax_refsource_MISCWEB
- github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23ghsax_refsource_MISCWEB
- github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qjghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.