CVE-2026-65700
h2oGPT through 0.2.1 contains a path traversal vulnerability in the OpenAI-compatible files API that 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 getuserdir function in openaiserver/backendutils.py uses the bearer token string unsanitized as a path component via os.path.join, and because the default API key is EMPTY authentication is bypassed, 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.
Package Versions Affected
Automatically patch vulnerabilities without upgrading
CVSS Version



Related Resources
References
https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65700.json, https://nvd.nist.gov/vuln/detail/CVE-2026-65700, https://www.vulncheck.com/advisories/h2ogpt-path-traversal-via-openai-compatible-files-api, https://github.com/h2oai/h2ogpt, https://github.com/geo-chen/oss/blob/main/h2ogpt.md