{"answers":{"affected":"3 open source packages ship an affected version, including khoj.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-52294 exists.","fix":"Upgrade khoj to 1.29.0 or later.","what":"CVE-2024-52294 is a medium-severity missing authorization vulnerability in khoj-ai khoj, published on 30 Dec 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-52294 and fix it if it is affected.\n\nWhat it is: CVE-2024-52294 is a medium-severity missing authorization vulnerability in khoj-ai khoj, published on 30 Dec 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-52294 exists.\n\nAffected packages and fixed versions:\n- khoj (PyPI): affected all versions; fixed in 1.29.0\n- khoj (PyPI): affected all versions; fixed in 1.29.0\n- khoj (PyPI): affected all versions; fixed in 1.29.0\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-2024-52294/ (Markdown: https://insights.sbomify.com/CVE-2024-52294/index.md)","id":"CVE-2024-52294","markdown":"https://insights.sbomify.com/CVE-2024-52294/index.md","name":"CVE-2024-52294","record":{"aliases":["GHSA-hq4h-w933-jm6c","PYSEC-2026-1493"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"AI self-hosting app","requires_auth":"low_privilege","summary":"Authenticated users can modify other users' Stripe subscriptions by manipulating the email parameter due to missing ownership checks.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","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 version 1.29.10, an Insecure Direct Object Reference (IDOR) vulnerability in the update_subscription endpoint allows any authenticated user to manipulate other users' Stripe subscriptions by simply modifying the email parameter in the request. The vulnerability exists in the subscription endpoint at `/api/subscription`. The endpoint uses an email parameter as a direct reference to user subscriptions without verifying object ownership. While authentication is required, there is no authorization check to verify if the authenticated user owns the referenced subscription. The issue was fixed in version 1.29.10. Support for arbitrarily presenting an email for update has been deprecated.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"khoj has an IDOR in subscription management that allows unauthorized subscription modifications","id":"CVE-2024-52294","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"DataEase has a forged JWT token vulnerability","id":"CVE-2024-52295"},"packages":[{"ecosystem":"PyPI","fixed":["1.29.0"],"introduced":["0"],"last_affected":[],"package":"khoj","purl":null,"source":"GHSA-hq4h-w933-jm6c"},{"ecosystem":"PyPI","fixed":["1.29.0"],"introduced":["0"],"last_affected":[],"package":"khoj","purl":"pkg:pypi/khoj","source":"GHSA-hq4h-w933-jm6c"},{"ecosystem":"PyPI","fixed":["1.29.0"],"introduced":["0"],"last_affected":[],"package":"khoj","purl":"pkg:pypi/khoj","source":"PYSEC-2026-1493"}],"prev":{"headline":"Craft has a Potential Remote Code Execution via missing path normalization \u0026 Twig SSTI","id":"CVE-2024-52293"},"products":["khoj"],"published":"2024-12-30","related":[],"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":"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":"2024-12-30","vendors":["khoj-ai"]},"summary":"Authenticated users can modify other users' Stripe subscriptions by manipulating the email parameter due to missing ownership checks.","url":"https://insights.sbomify.com/CVE-2024-52294/"}