7.3high
tinacms vulnerable to arbitrary code execution
- Severity
- 7.3high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.51% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-529f-9qwm-9628
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tinacms tinacms | tinacms < 3.1.1, @tinacms/cli < 2.0.4, @tinacms/graphql < 2.0.3 | CVE List |
| tinacms (npm) | before 3.1.1 | GitHub Advisory Database |
| @tinacms/cli (npm) | before 2.0.4 | GitHub Advisory Database |
| @tinacms/graphql (npm) | before 2.0.3 | GitHub Advisory Database |
| ssw tinacms | before 3.1.1 | NVD |
| ssw tinacms/cli | before 2.0.4 | NVD |
| ssw tinacms/graphql | before 2.0.3 | NVD |
All scores
| GitHub_M | 7.3high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
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.
Details
The gray-matter package executes by default the code in the markdown file's front matter. tinacms does not change this behavior when process markdown file, e.g., by passing a custom engine property for js/javascript in the options object.
PoC
- Create a tinacms app using the cli/documentation:
npx create-tina-app@latest
- Modify one of the blog posts to contain the following front matter:
---js
{
"title": "Pawned" + console.log(require("fs").readFileSync("/etc/passwd").toString())
}
---
- Start the tinacms server, e.g., with
npm run dev - Observe the console of the server printing the password file, showing that attackers can execute arbitrary commands.
Impact
RCE: attackers can execute arbitrary JavaScript code on the server hosting tinacms.
Feasibility
Potential attack scenarios can be executed like this: Companies often have technical writers as contractors. These contractors produce md files, which they send over email or upload in a shared cloud folder. Developers download these files and upload them in tinacms's content folder. While this example might appear speculative or contrived, a general observation is that developers would be very surprised to find out that processing untrusted markdown files via tinacms = server-side code execution = complete machine take over. That is, tinacms users might not expect markdown files to contain anything else than data and gray-matter violates that assumption.
NVD (es)
Tina es un sistema de gestión de contenido sin cabeza. En tinacms Versiones anteriores a la versión 3.1.1, tinacms utiliza el paquete gray-matter de forma insegura, permitiendo a atacantes que pueden controlar el contenido de los archivos markdown procesados, por ejemplo, publicaciones de blog, ejecutar código arbitrario. tinacms versión 3.1.1, @tinacms/cli versión 2.0.4, y @tinacms/graphql versión 2.0.3 contienen una solución para el problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68278 changed 2025-12-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-529f-9qwm-9628 changed 2025-12-18 | CC-BY-4.0 |
| NVD | CVE-2025-68278 changed 2026-10-06 | Public domain |