Server code execution via executable front matter
Published Dec 18, 2025 · Updated Dec 18, 2025
Code injection in TinaCMS before 3.1.1 allows attackers controlling processed Markdown files to execute arbitrary JavaScript on the server. The GraphQL database parseFile path passes front matter to gray-matter without disabling its JavaScript and CoffeeScript engines. A crafted file using ---js, ---javascript, or ---coffee front matter must enter the content workflow and then be processed, granting code execution with the TinaCMS server process's privileges.
Summary
What happened
Code injection in TinaCMS before 3.1.1 allows attackers controlling processed Markdown files to execute arbitrary JavaScript on the server. The GraphQL database parseFile path passes front matter to gray-matter without disabling its JavaScript and CoffeeScript engines. A crafted file using ---js, ---javascript, or ---coffee front matter must enter the content workflow and then be processed, granting code execution with the TinaCMS server process's privileges.
The record
- CVE
- CVE-2025-68278
- Published
- Dec 18, 2025
- Updated
- Dec 18, 2025
- Vendor
- TinaCMS
- Product
- TinaCMS
- Classifications
- CWE-94, CAPEC-35, CAPEC-77, CAPEC-242, T1059.007
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 18, 2025CVE publishedPublication date reported by the CVE source.
- Dec 18, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=tinacms < 3.1.1
- Affected versionversion=@tinacms/cli < 2.0.4
- Affected versionversion=@tinacms/graphql < 2.0.3
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GitHub advisory front-matter proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo