Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. khoj
  4. ›
  5. GHSA-62mm-xwmv-crhg

GHSA-62mm-xwmv-crhg: khoj has an unauthenticated path traversal in /home/ endpoint that allows file read from server filesystem

September 25, 2026

The /home/{file_path:path} endpoint in web_client.py serves static files by directly concatenating the user-supplied file_path with the home_directory constant. There is no path traversal filtering, no path normalization check, and no authentication required. An attacker can use ../ sequences to read arbitrary files from the server filesystem.

References

  • github.com/advisories/GHSA-62mm-xwmv-crhg
  • github.com/khoj-ai/khoj/commit/21c51b9ace4eb59ce79ac0a93b917289824195cf
  • github.com/khoj-ai/khoj/commit/9801ffd2de642772f072ca496032b7c352013b6a
  • github.com/khoj-ai/khoj/releases/tag/2.0.0-beta.25
  • github.com/khoj-ai/khoj/security/advisories/GHSA-62mm-xwmv-crhg

Code Behaviors & Features

Detect and mitigate GHSA-62mm-xwmv-crhg with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0-beta.23 before 2.0.0-beta.25

Fixed versions

  • 2.0.0-beta.25

Solution

Upgrade to version 2.0.0-beta.25 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/khoj/GHSA-62mm-xwmv-crhg.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 26 Sep 2026 12:18:02 +0000.