Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-69207

MEDIUM 5.4EPSS 36%

Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning

Also known as GHSA-6whj-7qmg-86qj, PYSEC-2026-1491

Mitigation

  • Upgrade khoj to 2.0.0-beta.23 or later.

Who should check

  • Projects that depend on PyPI package khoj (<= 2.0.0b25.dev3)
  • Anyone running khoj-ai khoj < 2.0.0-beta.23

Vulnerability facts

Affected
khoj <= 2.0.0b25.dev3
Fixed in
khoj-ai khoj 2.0.0-beta.23
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: Low
EPSS
0.50% chance of exploitation in 30 days (percentile 36, 2026-11-26)
CWE
CWE-639
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI khoj<= 2.0.0b25.dev3—osv
khoj-ai khoj< 2.0.0-beta.23—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-69207. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-69207.md
Affected: khoj <= 2.0.0b25.dev3
Fixed in: khoj-ai khoj 2.0.0-beta.23

Steps:
1. Search this machine and project for khoj (PyPI), khoj-ai khoj: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-69207 being exploited?

There is no confirmed exploitation: CVE-2025-69207 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-69207?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2025-69207?

khoj <= 2.0.0b25.dev3.

Is there a fix for CVE-2025-69207?

Yes. Fixed in khoj-ai khoj 2.0.0-beta.23. Upgrade khoj to 2.0.0-beta.23 or later.

How do I check if I'm affected by CVE-2025-69207?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors