{"answers":{"affected":"3 open source packages ship an affected version, including khoj. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-69207 exists.","fix":"No fix has been published for CVE-2025-69207 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-69207 is a medium-severity authentication bypass vulnerability in khoj-ai khoj, published on 2 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-69207 and fix it if it is affected.\n\nWhat it is: CVE-2025-69207 is a medium-severity authentication bypass vulnerability in khoj-ai khoj, published on 2 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-69207 exists.\n\nAffected packages and fixed versions:\n- khoj (PyPI): affected all versions up to 2.0.0b25.dev3; no fix listed\n- khoj (PyPI): affected all versions up to 2.0.0b25.dev3; no fix listed\n- khoj (PyPI): affected all versions up to 2.0.0b25.dev3; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-69207/ (Markdown: https://insights.sbomify.com/CVE-2025-69207/index.md)","id":"CVE-2025-69207","markdown":"https://insights.sbomify.com/CVE-2025-69207/index.md","name":"CVE-2025-69207","record":{"aliases":["GHSA-6whj-7qmg-86qj","PYSEC-2026-1491"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"AI search application","requires_auth":"none","summary":"Attackers can hijack Notion integrations and poison search indexes by exploiting an IDOR in the OAuth callback, requiring user UUID knowledge.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"khoj","vendor":"khoj"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Khoj has an IDOR in Notion OAuth Flow Enables Index Poisoning","id":"CVE-2025-69207","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"auth_bypass","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"free5GC UDR's NEF incorrectly returns 500 for missing PFD data (UDR 404) in Nnef_PfdManagement GET request","id":"CVE-2025-69208"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.0.0b25.dev3"],"package":"khoj","purl":null,"source":"GHSA-6whj-7qmg-86qj"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.0.0b25.dev3"],"package":"khoj","purl":"pkg:pypi/khoj","source":"GHSA-6whj-7qmg-86qj"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.0.0b25.dev3"],"package":"khoj","purl":"pkg:pypi/khoj","source":"PYSEC-2026-1491"}],"prev":{"headline":"Hemmelig has SSRF Filter bypass in Secret Request functionality","id":"CVE-2025-69206"},"products":["khoj"],"published":"2026-02-02","related":[{"cvss_score":5.9,"headline":"Prompt Injection triggered XSS vulnerability in Khoj Obsidian, Desktop and Web clients","id":"CVE-2024-25639","kev_date_added":null,"published":"2024-07-08"},{"cvss_score":5.4,"headline":"Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)","id":"CVE-2024-43396","kev_date_added":null,"published":"2024-08-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-03","vendors":["khoj-ai"]},"summary":"Attackers can hijack Notion integrations and poison search indexes by exploiting an IDOR in the OAuth callback, requiring user UUID knowledge.","url":"https://insights.sbomify.com/CVE-2025-69207/"}