CVE-2026-28791: Path Traversal Vulnerability in @tinacms/cli Media Upload Handler

tinacms Updated 14 Mar 2026

Summary

12/03/2026
Yes i
High
7.4

CVE-2026-28791: Tina: Path Traversal in Media Upload Handle. Affects tinacms versions < 2.1.7. Fixed in 2.1.7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The @tinacms/cli package is a command-line interface for TinaCMS, a headless content management system that allows developers to create and manage content in their applications. It provides various functionalities, including a development server for media uploads. However, a critical path traversal vulnerability has been identified in the media upload handler, which could allow unauthorized file access and manipulation.

Vulnerability Detail

A path traversal vulnerability (CWE-22) exists in the media upload handler of the TinaCMS development server. The vulnerability arises from the use of the path.join() function without proper validation of user-controlled input. This allows attackers to craft requests that can write files to arbitrary locations on the filesystem, potentially leading to remote code execution, denial of service, or information disclosure. The vulnerable code is located in the media.ts file, specifically at lines 42-43, where user input is processed without adequate checks.

How To Fix

Latest published version: 3.15.0 as of 23 Oct 2026

npm install tinacms@3.15.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.1.7

This is the first release that contains the fix.

npm install tinacms@2.1.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, ensure that the development server is not exposed to untrusted networks. Additionally, implement custom middleware to validate file paths before they reach the media upload handler, rejecting any requests containing traversal sequences.

Conclusion

The path traversal vulnerability in the @tinacms/cli package poses significant risks to applications using this package. It is crucial to update to the patched version and implement proper path validation to safeguard against potential exploits.

See every vulnerability recorded for tinacms →

Share this vulnerability

FAQ

A path traversal vulnerability allows an attacker to access files and directories stored outside the intended directory by manipulating file paths.

Exploitation of this vulnerability can lead to unauthorized file access, remote code execution, or denial of service, compromising the security of your application.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to test your application without signup.

If you cannot update the package, implement custom validation for file paths in your application to mitigate the risk of exploitation.

The CVSS score of this vulnerability is 7.4, indicating a high level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for tinacms.

How To Fix

Latest published version: 3.15.0 as of 23 Oct 2026

npm install tinacms@3.15.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.1.7

This is the first release that contains the fix.

npm install tinacms@2.1.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback