{"url":"http://public2.vulnerablecode.io/api/packages/74385?format=json","purl":"pkg:pypi/openchatbi@0.2.2","type":"pypi","namespace":"","name":"openchatbi","version":"0.2.2","qualifiers":{},"subpath":"","is_vulnerable":false,"next_non_vulnerable_version":null,"latest_non_vulnerable_version":null,"affected_by_vulnerabilities":[],"fixing_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/50496?format=json","vulnerability_id":"VCID-x4tk-nyre-1ya8","summary":"OpenChatBI has a Path Traversal Vulnerability in save_report Tool\nThe `save_report` tool in `openchatbi/tool/save_report.py` suffers from a critical path traversal vulnerability due to insufficient input sanitization of the `file_format` parameter.\n\nThe function only removes leading dots of `file_format` using `file_format.lstrip(\".\")` but allows path traversal sequences like `/../../` to pass through unchanged. When the filename is constructed via string concatenation in\n\nf\"{timestamp}_{clean_title}.{file_format}\"\n\nmalicious path sequences are preserved, enabling attackers to write files outside the designated report directory.\n\nAn attacker can manipulate the LLM to call the tool with a specific `file_format` to overwrite critical system files like `__init__.py`, potentially leading to remote code execution.","references":[{"reference_url":"https://github.com/zhongyu09/openchatbi","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/zhongyu09/openchatbi"},{"reference_url":"https://github.com/zhongyu09/openchatbi/commit/372a7e861da5159c3106d64d6f6edf8284db8c75","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/zhongyu09/openchatbi/commit/372a7e861da5159c3106d64d6f6edf8284db8c75"},{"reference_url":"https://github.com/zhongyu09/openchatbi/issues/10","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/zhongyu09/openchatbi/issues/10"},{"reference_url":"https://github.com/zhongyu09/openchatbi/pull/12","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/zhongyu09/openchatbi/pull/12"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28795","reference_id":"CVE-2026-28795","reference_type":"","scores":[],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28795"},{"reference_url":"https://github.com/advisories/GHSA-vmwq-8g8c-jm79","reference_id":"GHSA-vmwq-8g8c-jm79","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-vmwq-8g8c-jm79"},{"reference_url":"https://github.com/zhongyu09/openchatbi/security/advisories/GHSA-vmwq-8g8c-jm79","reference_id":"GHSA-vmwq-8g8c-jm79","reference_type":"","scores":[],"url":"https://github.com/zhongyu09/openchatbi/security/advisories/GHSA-vmwq-8g8c-jm79"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/74385?format=json","purl":"pkg:pypi/openchatbi@0.2.2","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/openchatbi@0.2.2"}],"aliases":["CVE-2026-28795","GHSA-vmwq-8g8c-jm79"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-x4tk-nyre-1ya8"}],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/openchatbi@0.2.2"}