{"id":"CVE-2025-68278","aliases":["CVE-2025-68278","GHSA-529f-9qwm-9628"],"related":[],"kind":"vulnerability","state":"published","title":"tinacms vulnerable to arbitrary code execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n```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.\n\n### Details\nThe ```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.\n\n### PoC\n1. Create a tinacms app using the cli/documentation: \n```\nnpx create-tina-app@latest\n```\n2. Modify one of the blog posts to contain the following front matter:\n```js\n---js\n{\n  \"title\": \"Pawned\" + console.log(require(\"fs\").readFileSync(\"/etc/passwd\").toString())\n}\n---\n```\n3. Start the tinacms server, e.g., with ```npm run dev```\n4. Observe the console of the server printing the password file, showing that attackers can execute arbitrary commands. \n\n### Impact\nRCE: attackers can execute arbitrary JavaScript code on the server hosting tinacms.\n\n### Feasibility\nPotential 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-18T15:27:21.403Z","modified":"2026-10-06T22:10:00.247Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"tinacms < 3.1.1","status":"affected"},{"version":"@tinacms/cli < 2.0.4","status":"affected"},{"version":"@tinacms/graphql < 2.0.3","status":"affected"}],"vendor":"tinacms","product":"tinacms","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.1.1"}],"ecosystem":"npm","package":"tinacms","purl":"pkg:npm/tinacms","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.4"}],"ecosystem":"npm","package":"@tinacms/cli","purl":"pkg:npm/%40tinacms/cli","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.3"}],"ecosystem":"npm","package":"@tinacms/graphql","purl":"pkg:npm/%40tinacms/graphql","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.1.1"}],"vendor":"ssw","product":"tinacms","cpe":"cpe:2.3:a:ssw:tinacms:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"2.0.4"}],"vendor":"ssw","product":"tinacms/cli","cpe":"cpe:2.3:a:ssw:tinacms\\/cli:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"2.0.3"}],"vendor":"ssw","product":"tinacms/graphql","cpe":"cpe:2.3:a:ssw:tinacms\\/graphql:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/tinacms/tinacms/security/advisories/GHSA-529f-9qwm-9628","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tinacms/tinacms/commit/fa7c27abef968e3f3a3e7d564f282bc566087569","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68278","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tinacms/tinacms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-12-18T15:45:22.577Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68278","url":"https://www.cve.org/CVERecord?id=CVE-2025-68278","licence":"CVE Terms of Use","modified":"2025-12-18T15:46:53.765Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-529f-9qwm-9628","url":"https://github.com/advisories/GHSA-529f-9qwm-9628","licence":"CC-BY-4.0","modified":"2025-12-18T21:26:19.876Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68278","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68278","licence":"Public domain","modified":"2026-10-06T22:10:00.247Z"}],"updatedAt":"2026-11-25T22:59:09.698Z","epss":{"score":0.00514,"percentile":0.45245,"date":"2026-12-01T12:00:22.000Z"}}