Skip to main content
← All vulnerabilities
CVE-2024-52294GHSA-HQ4H-W933-JM6CPYSEC-2026-1493

khoj has an IDOR in subscription management that allows unauthorized subscription modifications

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.29.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • khoj-ai khoj

    fixed in 1.29.0

  • khojPyPI

    fixed in 1.29.0

References 2

GitHub · khoj-ai/khoj