CVE-2026-28791 Details
Description
Tina is a headless content management system. Prior to 2.1.7, a path traversal vulnerability exists in the TinaCMS development server's media upload handler. The code at media.ts joins user-controlled path segments using path.join() without validating that the resulting path stays within the intended media directory. This allows writing files to arbitrary locations on the filesystem. This vulnerability is fixed in 2.1.7.
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.
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/tinacms/tinacms/security/advisories/GHSA-5hxf-c7j4-279c | CISA-ADP | ExploitVendor Advisory |
| https://github.com/tinacms/tinacms/security/advisories/GHSA-5hxf-c7j4-279c | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ssw tinacms/cli | < 2.1.7 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 13, 2026 | Initial Analysis | [email protected] |
| Mar 13, 2026 | CVE Modified | CISA-ADP |
| Mar 12, 2026 | New CVE Received | [email protected] |