Live threats

All CVEs / khoj-ai

CVE-2024-52294khoj-ai khoj

Medium 4.3

Priority
26
CVSS 3.1
4.3
EPSS
0.5%
probability of exploitation in 30 days · percentile 39
Auth required
Yes
Published
Dec 30, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-639
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for khoj.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI khoj < 1.29.0 1.29.0 pip install "khoj>=1.29.0"
PyPI khoj < 1.29.0 1.29.0 pip install "khoj>=1.29.0"

Per OSV / GitHub Advisories (GHSA-hq4h-w933-jm6c, PYSEC-2026-1493). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.