Loading advisory.
Loading advisory.
tinacms is vulnerable to arbitrary code execution
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.
Published 2025-12-18 15:27 UTC · Modified 2025-12-18 21:26 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| tinacms | npm | < 3.1.1 | 3.1.1 | npm install tinacms@3.1.1 |
| @tinacms/cli | npm | < 2.0.4 | 2.0.4 | npm install @tinacms/cli@2.0.4 |
| @tinacms/graphql | npm | < 2.0.3 | 2.0.3 | npm install @tinacms/graphql@2.0.3 |
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.
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.
Create a tinacms app using the cli/documentation:
npx create-tina-app@latestModify 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.
RCE: attackers can execute arbitrary JavaScript code on the server hosting tinacms.
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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.008 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.008 | 0.005 | v2026.06.15 |