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

High 7.4 Published Updated

An attacker can write files to arbitrary filesystem locations via the TinaCMS development server's media upload handler due to insufficient path validation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-28791?

CVE-2026-28791 is a high-severity path traversal vulnerability in tinacms, published on 12 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2026-28791?

2 open source packages ship an affected version, including tinacms. It affects 1 product.

PackageAffectedFixed in
tinacms npmAll versions2.1.7
tinacms npmAll versions2.1.7

Products include Ssw Tinacms\/Cli.

How do I fix CVE-2026-28791?

Upgrade tinacms to 2.1.7 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-28791 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-28791 exists.

Sources

Also known as GHSA-5hxf-c7j4-279c.

Is CVE-2026-28791 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free