Skip to content

fix: sanitize upload filename to prevent path traversal and concurrent collisions#1022

Open
YizukiAme wants to merge 1 commit into
datalab-to:masterfrom
YizukiAme:fix/upload-filename-sanitization
Open

fix: sanitize upload filename to prevent path traversal and concurrent collisions#1022
YizukiAme wants to merge 1 commit into
datalab-to:masterfrom
YizukiAme:fix/upload-filename-sanitization

Conversation

@YizukiAme
Copy link
Copy Markdown

Fixes #1017
Fixes #1018

Security fix: the upload endpoint trusts the multipart filename directly, allowing path traversal. Also, concurrent uploads with the same filename race on the same file.

This fix uses UUID-based unique filenames with basename sanitization and path validation.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 10, 2026

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@YizukiAme
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Apr 10, 2026
u-ashish pushed a commit that referenced this pull request Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant