CVE-2025-68278 tinacms vulnerable to arbitrary code execution

High 7.3 Published Updated

Attackers controlling markdown content can execute arbitrary code via insecure gray-matter usage in Tina CMS.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-68278?

CVE-2025-68278 is a high-severity code injection vulnerability in tinacms, published on 18 Dec 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Tina is a headless content management system. In tinacms prior to version 3.1.1, tinacms uses the gray-matter package in an insecure way allowing attackers that can control the content of the processed markdown files, e.g., blog posts, to execute arbitrary code. tinacms version 3.1.1, @tinacms/cli version 2.0.4, and @tinacms/graphql version 2.0.3 contain a fix for the issue.

Weakness: CWE-94

Which versions are affected by CVE-2025-68278?

6 open source packages ship an affected version, including @tinacms/cli, @tinacms/graphql and tinacms. It affects 3 products.

PackageAffectedFixed in
@tinacms/cli npmAll versions2.0.4
@tinacms/cli npmAll versions2.0.4
@tinacms/graphql npmAll versions2.0.3
@tinacms/graphql npmAll versions2.0.3
tinacms npmAll versions3.1.1
tinacms npmAll versions3.1.1

Products include Ssw Tinacms, Ssw Tinacms\/Cli, Ssw Tinacms\/Graphql.

How do I fix CVE-2025-68278?

Upgrade @tinacms/cli to 2.0.4 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-68278 being exploited?

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

Sources

Also known as GHSA-529f-9qwm-9628.

Is CVE-2025-68278 in your software?

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

Check your SBOMs for free