mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[PR #34] [MERGED] fix(connectors/filesystem): prevent path traversal in read_file #88
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/oikb/pull/34
Author: @mhajder
Created: 6/6/2026
Status: ✅ Merged
Merged: 7/17/2026
Merged by: @tjbck
Base:
main← Head:fix/connectors/filesystem📝 Commits (1)
61f3bd0fix(connectors/filesystem): prevent path traversal in read_file📊 Changes
1 file changed (+8 additions, -1 deletions)
View changed files
📝
src/oikb/connectors/filesystem.py(+8 -1)📄 Description
This pull request adds a security enhancement to the
read_filemethod infilesystem.pyto prevent directory traversal attacks. Now, before reading a file, the code checks that the resolved file path is within the allowed root directory.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.