CVE-2025-69207
HIGH 7.1CVSS 3.1Khoj has an IDOR in Notion OAuth Flow that Enables Index Poisoning
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.
- Published
- 2 Feb 2026
- Last modified
- 7 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-639CWE-862
- Also known as
- GHSA-6whj-7qmg-86qjPYSEC-2026-1491
- Sources
- NVDJSONOSV GHSA-6whj-7qmg-86qjJSONOSV PYSEC-2026-1491JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:* |
< 2.0.0 | 2.0.0 |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta1:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta10:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta11:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta12:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta13:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta14:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta15:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta16:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta17:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta18:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta19:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta2:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta20:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta21:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | khoj | khojcpe:2.3:a:khoj:khoj:2.0.0:beta22:*:*:*:*:*:* |
= 2.0.0 | |
| OSV | PyPI | khoj | <= 2.0.0b25.dev3 |
References
- https://github.com/khoj-ai/khoj/commit/1b7ccd141d47f365edeccc57d7316cb0913d748b · Patch, WEB
- https://github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.23 · Product, Release Notes, WEB
- https://github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-69207 · ADVISORY
- https://github.com/khoj-ai/khoj · PACKAGE
- https://pypi.org/project/khoj · PACKAGE
- https://github.com/advisories/GHSA-6whj-7qmg-86qj · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 2 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Feb 2026)