Skip to main content

Khoj CVE-2025-69207

MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-02-02 security-advisories@github.com GHSA-6whj-7qmg-86qj
5.4
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Impact

CVSS 5.4 (MEDIUM). Attack vector: Network. Complexity: Low. Privileges required: None. User interaction: Required. Exploitation no authentication required. Public exploit/POC available.

Exploit ScenarioDerived

An attacker without authentication could exploit this vulnerability to hijack any user's Notion integration by manipulating the state parameter.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 12, 2026

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 requir...

Earlier versions of this analysis (1)
v1 Mar 12, 2026 - 22:01 CVSS 5.4

Khoj versions up to 2.0.0 is affected by authorization bypass through user-controlled key (CVSS 5.4).

RemediationAI

A vendor patch is available — apply it immediately. Fixed in version 2.0.0. Restrict network access to the affected service where possible.

Affected Packages

pypi khoj no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affects Khoj. 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

Know when Khoj gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

3
PoC Detected
Feb 27, 2026 - 20:34 vuln.today
Public exploit code
Patch released
Feb 27, 2026 - 20:34 nvd
Patch available
CVE Published
Feb 02, 2026 - 23:16 nvd
MEDIUM 5.4

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

Organizations using Khoj should be aware of moderate risk from CVE-2025-69207, a IDOR vulnerability rated CVSS 5.4. Exploitation could compromise the security of affected deployments. Proof-of-concept code is publicly available. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)GitHub Advisory

cpe:2.3:a:khoj:khoj:*:*:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta1:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta10:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta11:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta12:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta13:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta14:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta15:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta16:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta17:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta18:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta19:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta2:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta20:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta21:*:*:*:*:*:*
cpe:2.3:a:khoj:khoj:2.0.0:beta22:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy