CVE-2025-69207
Unknown Unknown - Not Provided

IDOR in Khoj Notion OAuth Callback Enables Account Hijacking

Vulnerability report for CVE-2025-69207, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-02-02

Last updated on: 2026-02-27

Assigner: GitHub, Inc.

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

Published
2026-02-02
Last Modified
2026-02-27
Generated
2026-07-06
AI Q&A
2026-02-03
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 16 associated CPEs
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
CWE Icon
KEV
KEV Icon
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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an Insecure Direct Object Reference (IDOR) in the Notion OAuth callback of the Khoj app before version 2.0.0-beta.23. It allows an attacker to hijack any user's Notion integration by manipulating the state parameter. The callback endpoint accepts any user UUID without verifying that the OAuth flow was initiated by that user. Attackers who know a user's UUID, which can be leaked through shared conversations containing AI-generated images, can replace the victim's Notion configurations with their own.

Impact Analysis

This vulnerability can lead to unauthorized access to a victim's Khoj search index and data poisoning by allowing attackers to hijack and replace the victim's Notion integration configurations. This compromises the integrity and confidentiality of the victim's data within Khoj.

Mitigation Strategies

Upgrade Khoj to version 2.0.0-beta.23 or later, where the IDOR vulnerability in the Notion OAuth callback is fixed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-69207. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart