# CVE-2024-52294: khoj has an IDOR in subscription management that allows unauthorized subscription modifications

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- 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.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-30T16:12:40.000Z
- Modified: 2026-09-10T03:50:21.586Z
- Also known as: GHSA-hq4h-w933-jm6c, PYSEC-2026-1493
- Weaknesses: CWE-639
- 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 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.

(As written by CVE List.)

## Affected

- khoj-ai khoj: < 1.29.0
- khoj (PyPI): before 1.29.0

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/khoj-ai/khoj/security/advisories/GHSA-hq4h-w933-jm6c> (exploit, web)
- <https://github.com/khoj-ai/khoj/commit/47d3c8c23597900af708bdc60aced3ae5d2064c1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52294> (advisory)
- <https://github.com/khoj-ai/khoj> (package)
- <https://pypi.org/project/khoj> (package)
- <https://github.com/advisories/GHSA-hq4h-w933-jm6c> (advisory)

## Sources

- CVE List: [CVE-2024-52294](https://www.cve.org/CVERecord?id=CVE-2024-52294), CVE Terms of Use, modified 2024-12-30
- GitHub Advisory Database: [GHSA-hq4h-w933-jm6c](https://github.com/advisories/GHSA-hq4h-w933-jm6c), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-52294](https://nvd.nist.gov/vuln/detail/CVE-2024-52294), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1493](https://osv.dev/vulnerability/PYSEC-2026-1493), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-52294 · Whole record: https://cve.day/CVE-2024-52294.json · Rebuilt by cve.day 2026-11-25T22:58:50.581Z
