You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DEFECT] File upload validation rejects filenames with '..' in workflow endpoint #33785
The IllegalTraversalFilePathValidator is incorrectly rejecting legitimate filenames that contain '..' when uploading files through the workflow actions endpoint. This prevents users from uploading files with valid names like macOS screenshot timestamps.
Steps to Reproduce
Send a POST request to /api/v1/workflow/actions/default/fire/NEW
Include a file in the formData with filename: Screenshot 2025-03-18 at 4.09.02 p.m..png
Observe the security validation error
Current Behavior
The file upload is rejected with:
INFO util.SecurityLogger - class com.dotcms.security.multipart.IllegalTraversalFilePathValidator : The filename: 'Screenshot 2025-03-18 at 4.09.02 p.m..png' is invalid
Expected Behavior
The file should be accepted since:
The '..' appears within the filename itself (part of "p.m."), not as a path component
There are no path separators (/ or ) adjacent to the '..'
This is a legitimate macOS screenshot filename pattern with time abbreviations
Impact
Users cannot upload macOS screenshots with default naming that includes "a.m." or "p.m."
Blocks common content creation workflows using screenshots
Affects any file with legitimate '..' in the name
Creates poor user experience with unclear error messaging
Technical Details
Endpoint:POST /api/v1/workflow/actions/default/fire/NEW Request Type: multipart/form-data with file upload Component:com.dotcms.security.multipart.IllegalTraversalFilePathValidator
Root Cause: The validator likely checks for '..' presence without context of whether it's part of a path traversal attempt or just part of the filename.
Suggested Fix: Update validation logic to:
Check if '..' is preceded or followed by path separators (/, )
Allow '..' when it's part of the filename with spaces or other non-path characters
Consider normalizing the path first and checking if it escapes the intended directory
Validate against the actual path component, not the full filename
Example Valid Filenames Being Rejected:
Screenshot 2025-03-18 at 4.09.02 p.m..png (macOS screenshot)
changed the title [-]False positive: File upload validation rejects filenames with '..' in workflow endpoint[/-][+][DEFECT] File upload validation rejects filenames with '..' in workflow endpoint[/+]on Nov 11, 2025
Activity
[-]False positive: File upload validation rejects filenames with '..' in workflow endpoint[/-][+][DEFECT] File upload validation rejects filenames with '..' in workflow endpoint[/+]#33785
github-actions commentedon Nov 12, 2025
PRs linked to this issue
#33785
fabrizzio-dotCMS commentedon Nov 13, 2025
Note to QA:
Make sure the test includes a case like the one listed in #21854
Here's a request that can be used to simulate an attack
Replace **** with a valid token
13 remaining items
fix(WorkflowAPI) File upload rejects any file with .. in their name R…
fix(WorkflowAPI) File upload rejects any file with .. in their name R…