# khoj unauthenticated path traversal in /home/ endpoint

Source: https://junglewise.ai/threats/khoj-has-an-unauthenticated-path-traversal-in-home-endpoint-that-allows-589daa17  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-25. Updated: 2026-09-28  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 4 · Published 2026-09-25

Khoj is an open-source search and chat application. An unauthenticated attacker can read arbitrary files from the server's filesystem by exploiting a path traversal vulnerability in the /home/ endpoint, potentially exposing sensitive configuration, credentials, and system files without requiring any authentication or user interaction.

Technologies: [khoj (PyPI)](https://junglewise.ai/threats/technologies/pypi-khoj). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## 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

  ```sh
  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

## References

- [https://github.com/khoj-ai/khoj/security/advisories/GHSA-62mm-xwmv-crhg](https://github.com/khoj-ai/khoj/security/advisories/GHSA-62mm-xwmv-crhg)
- [https://github.com/khoj-ai/khoj/commit/21c51b9ace4eb59ce79ac0a93b917289824195cf](https://github.com/khoj-ai/khoj/commit/21c51b9ace4eb59ce79ac0a93b917289824195cf)

## Related threats

- [PYSEC-2026-1491 - Khoj has an IDOR in Notion OAuth Flow that Enables Index Poisoning](https://junglewise.ai/threats/cve-2025-69207-khoj-has-an-idor-in-notion-oauth-flow-that-enables-index)
- [PYSEC-2026-1493 - khoj has an IDOR in subscription management allows unauthorized subscription modifications](https://junglewise.ai/threats/cve-2024-52294-khoj-has-an-idor-in-subscription-management-allows-unauthorized)
- [PYSEC-2026-1492 - Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)](https://junglewise.ai/threats/cve-2024-43396-khoj-vulnerable-to-stored-cross-site-scripting-in-automate)
- [Khoj-ai Khoj Incorrect Authorization in Conversation Sharing Handler](https://junglewise.ai/threats/cve-2026-13508-khoj-ai-khoj-incorrect-authorization-in-conversation-sharing)
