CVE-2025-69207
Unknown
Unknown - Not Provided
IDOR in Khoj Notion OAuth Callback Enables Account Hijacking
Publication date: 2026-02-02
Last updated on: 2026-02-27
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| khoj | khoj | to 2.0.0 (exc) |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
| khoj | khoj | 2.0.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-639 | The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. |