khoj has an unauthenticated path traversal in /home/ endpoint that allows file read from server filesystem
GHSA-62mm-xwmv-crhg · published 2026-09-25
- Severity
- High
- CVSS score
- 8.7
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2.0.0-beta.25
Unauthenticated arbitrary file read. An attacker with network access to the Khoj instance can: Read application configuration — Django SECRET_KEY, database credentials, API keys Read system files — /etc/passwd, /etc/shadow (if permissions allow), /proc/self/environ Exfiltrate sensitive data — Any file readable by the server process Facilitate further attacks — Leaked credentials enable deeper compromise No authentication required — the endpoint has no auth decorators, making it exploitable by any network-reachable attacker.
Upgrade khoj to 2.0.0-beta.25 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| khoj | PyPI | >= 2.0.0-beta.23, < 2.0.0-beta.25 | 2.0.0-beta.25 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- CriticalVibe-Trading FastAPI endpoints permit unauthenticated access, file upload, and an RCE chainvibe-trading-ai
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.