Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. tinacms
  4. ›
  5. CVE-2026-28791

CVE-2026-28791: Tina: Path Traversal in Media Upload Handle

March 12, 2026

A path traversal vulnerability (CWE-22) exists in the TinaCMS development server’s media upload handler. The code at media.ts:42-43 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.

Attack Vector: Network (HTTP POST request) Impact: Arbitrary file write, potential Remote Code Execution


References

  • github.com/advisories/GHSA-5hxf-c7j4-279c
  • github.com/tinacms/tinacms
  • github.com/tinacms/tinacms/security/advisories/GHSA-5hxf-c7j4-279c
  • nvd.nist.gov/vuln/detail/CVE-2026-28791

Code Behaviors & Features

Detect and mitigate CVE-2026-28791 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.7

Fixed versions

  • 2.1.7

Solution

Upgrade to version 2.1.7 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/tinacms/CVE-2026-28791.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:16:58 +0000.