CVE-2025-68278: tinacms Arbitrary Code Execution Vulnerability
Summary
CVE-2025-68278: tinacms is vulnerable to arbitrary code execution. Affects tinacms versions < 3.1.1. Fixed in 3.1.1. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for tinacms.