# CVE-2025-69207: Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-02T17:31:33.000Z
- Modified: 2026-07-07T17:57:14.355Z
- Also known as: GHSA-6whj-7qmg-86qj, PYSEC-2026-1491
- Weaknesses: CWE-639, CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- khoj-ai khoj: < 2.0.0-beta.23
- khoj (PyPI): up to 2.0.0b25.dev3
- khoj khoj: before 2.0.0; 2.0.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`

## References

- <https://github.com/khoj-ai/khoj/security/advisories/GHSA-6whj-7qmg-86qj> (exploit, vendor-advisory, web)
- <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://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)

## Sources

- CVE List: [CVE-2025-69207](https://www.cve.org/CVERecord?id=CVE-2025-69207), CVE Terms of Use, modified 2026-02-03
- GitHub Advisory Database: [GHSA-6whj-7qmg-86qj](https://github.com/advisories/GHSA-6whj-7qmg-86qj), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-69207](https://nvd.nist.gov/vuln/detail/CVE-2025-69207), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1491](https://osv.dev/vulnerability/PYSEC-2026-1491), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-69207 · Whole record: https://cve.day/CVE-2025-69207.json · Rebuilt by cve.day 2026-11-25T22:59:10.988Z
