Quick answers
- Is This vulnerability exploited in the wild?
- No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
- How severe is This vulnerability?
- Medium severity, with a CVSS score of 4, published 25 September 2026.
- Which products and versions are affected?
- Khoj AI Khoj 2.0.0-beta.23 to 2.0.0-beta.25; khoj (PyPI) ECOSYSTEM:introduced=2.0.0-beta.23,fixed=2.0.0-beta.25.
- Is there a fix for This vulnerability?
- Yes. khoj (PyPI): upgrade to 2.0.0-beta.25 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is This vulnerability attacked?
- It is attacked over the network, in a software library.
- Am I affected?
- Check whether you run Khoj AI Khoj or khoj (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- khoj (PyPI): upgrade to 2.0.0-beta.25 or later
pip install "khoj>=2.0.0-beta.25"
Technical details
The /home/{file_path:path} endpoint in web_client.py directly concatenates user-supplied input with a base directory without path normalization or traversal filtering, and lacks authentication decorators. An attacker can use ../ sequences to traverse outside the intended directory and read arbitrary files readable by the server process via network requests.
Affected products
- khoj-ai khoj 2.0.0-beta.23 to 2.0.0-beta.25
Timeline
- 2026-09-25: disclosed
- 2026-09-25: patched: Fixed in 2.0.0-beta.25