CVE-2026-65700
CVE-2026-65700 is a critical path traversal vulnerability in h2oGPT's OpenAI-compatible files API. The vulnerability allows unauthenticated remote attackers to read, write, and delete arbitrary files accessible to the server process by supplying traversal sequences in the bearer token. The get_user_dir function in openai_server/backend_utils.py uses the bearer token string unsanitized as a path component via os.path.join, enabling attackers to traverse outside the intended user directory through the file content, delete, and upload endpoints to achieve remote code execution by writing to startup hooks or application-loaded files. Users of h2oGPT version 0.2.1 and prior should be aware of this critical vulnerability.