TinaCMS Path Traversal Vulnerability in Media Upload Handler Allowing Arbitrary File Write

Vulnerability

A path traversal vulnerability has been identified in TinaCMS versions prior to 2.1.7. The issue arises in the development server's media upload handler, where user-controlled path segments are joined using path.join() without proper validation. This oversight allows files to be written to arbitrary locations on the filesystem, potentially leading to remote code execution. The vulnerability exists in the media upload endpoint, which handles HTTP POST requests.

Impact

Exploitation of this vulnerability allows for arbitrary file writes, with the potential for remote code execution if malicious files are written to executable locations.

Reproduction

The vulnerability can be reproduced by uploading a file through the media upload endpoint using a path traversal sequence in the file name. The uploaded file will be written to a location outside the intended media directory, demonstrating the path traversal flaw.

Remediation

Users can update to TinaCMS version 2.1.7 or later, where this vulnerability has been fixed. For those using the affected media upload handler, it's recommended to implement path validation to ensure that uploaded file paths remain within the designated media directory.

Added: Mar 12, 2026, 5:21 PM
Updated: Mar 12, 2026, 5:21 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
8.3
remediation
0.0
relevance
3.8
threat
6.4
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.