CVE-2025-68278: tinacms Arbitrary Code Execution Vulnerability

tinacms Updated 18 Dec 2025

Summary

18/12/2025
Yes i
High
7.3

CVE-2025-68278: tinacms is vulnerable to arbitrary code execution. Affects tinacms versions < 3.1.1. Fixed in 3.1.1. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

tinacms is an open-source content management system designed for managing markdown-based content. It allows users to create and edit content easily, making it popular among developers and technical writers. However, tinacms has a significant security flaw due to its reliance on the gray-matter package, which processes markdown files in an insecure manner, leading to potential arbitrary code execution.

Vulnerability Detail

The vulnerability arises from the way tinacms utilizes the gray-matter package, which executes code found in the front matter of markdown files by default. This behavior is not altered by tinacms, allowing attackers who can manipulate markdown content to execute arbitrary JavaScript code on the server. This could lead to severe consequences, including unauthorized access to sensitive files and complete server takeover.

How To Fix

Minimum fixed version

3.1.1

This is the first release that contains the fix.

npm install tinacms@3.1.1

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

Workaround

As a temporary workaround, avoid processing untrusted markdown files in tinacms. Ensure that any markdown content is thoroughly reviewed and sanitized before being uploaded to the content folder.

Conclusion

The CVE-2025-68278 vulnerability in tinacms poses a serious risk due to its potential for arbitrary code execution. It is crucial for users to update their packages to the latest versions and to be cautious when handling markdown files. Utilizing tools like Vulert can help in monitoring for such vulnerabilities effectively.

See every vulnerability recorded for tinacms →

Share this vulnerability

FAQ

CVE-2025-68278 is a vulnerability in tinacms that allows for arbitrary code execution due to insecure handling of markdown files.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which analyzes your package-lock.json for vulnerabilities.

If exploited, this vulnerability can lead to unauthorized code execution on the server, potentially compromising sensitive data and server integrity.

Run the commands 'npm install tinacms@3.1.1', 'npm install @tinacms/cli@2.0.4', and 'npm install @tinacms/graphql@2.0.3' to update to the patched versions.

Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file, providing real-time insights.

Related vulnerabilities

Recent vulnerabilities recorded for tinacms.

How To Fix

Minimum fixed version

3.1.1

This is the first release that contains the fix.

npm install tinacms@3.1.1

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