CVE-2026-28795: Openchatbi Path Traversal Vulnerability
HIGHCVE-2026-28795 is a HIGH path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Openchatbi libraries in the PyPI ecosystem. The issue involves openchatbi has a path traversal vulnerability in save_report tool. Remediation is available by upgrading affected packages to version 0.2.2.
CVE-2026-28795 at a Glance
How to Fix CVE-2026-28795
To remediate this vulnerability, upgrade all affected Openchatbi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install openchatbi>=0.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show openchatbi
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-28795, inspect your installed packages using pip:
pip show openchatbi
Analyze the terminal output to locate any version of Openchatbi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.2), your application is affected.
Note: The pip show openchatbi command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Openchatbi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-28795 Affected Openchatbi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openchatbi
|
PyPI |
< 0.2.2
|
0.2.2
|
References
Frequently Asked Questions
What is CVE-2026-28795?
Which Openchatbi versions are affected?
What version fixes CVE-2026-28795?
Is openchatbi affected?
What CWE is associated with CVE-2026-28795?
How can I check PyPI dependencies for CVE-2026-28795?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vmwq-8g8c-jm79",
"modified" : "2026-03-06T21:56:36Z",
"published" : "2026-03-02T21:47:32Z",
"aliases" : [ "CVE-2026-28795" ],
"summary" : "OpenChatBI has a Path Traversal Vulnerability in save_report Tool",
"details" : "### Impact\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\n f\"{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.\n\n\n### Patches\n- Affected versions:\n<=0.2.1\n- Patched versions:\n0.2.2 (includes fix from PR #12: https://github.com/zhongyu09/openchatbi/pull/12)\n\n### Workarounds\nNo\n\n### References\n- Issue #10: https://github.com/zhongyu09/openchatbi/issues/10\n- PR #12: https://github.com/zhongyu09/openchatbi/pull/12",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "openchatbi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.2.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/zhongyu09/openchatbi/security/advisories/GHSA-vmwq-8g8c-jm79"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-28795"
}, {
"type" : "WEB",
"url" : "https://github.com/zhongyu09/openchatbi/issues/10"
}, {
"type" : "WEB",
"url" : "https://github.com/zhongyu09/openchatbi/pull/12"
}, {
"type" : "WEB",
"url" : "https://github.com/zhongyu09/openchatbi/commit/372a7e861da5159c3106d64d6f6edf8284db8c75"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zhongyu09/openchatbi"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-02T21:47:32Z",
"nvd_published_at" : "2026-03-06T07:16:00Z"
}
}