CVE-2024-52294
MEDIUM 4.3CVSS 3.1khoj has an IDOR in subscription management allows unauthorized subscription modifications
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.
- Published
- 30 Dec 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-639
- Also known as
- GHSA-hq4h-w933-jm6cPYSEC-2026-1493
- Sources
- NVDJSONOSV GHSA-hq4h-w933-jm6cJSONOSV PYSEC-2026-1493JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | khoj | < 1.29.0 | 1.29.0 |
References
- https://github.com/khoj-ai/khoj/commit/47d3c8c23597900af708bdc60aced3ae5d2064c1 · WEB
- https://github.com/khoj-ai/khoj/security/advisories/GHSA-hq4h-w933-jm6c · 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
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 30 Dec 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 30 Dec 2024)