Remote Code Execution Vulnerability in Tina CMS by TinaCMS
CVE-2026-54074
What is CVE-2026-54074?
Tina CMS, a headless content management system, has a vulnerability in its CLI tool affecting versions prior to 2.4.3. This flaw exists within the Forestry-to-Tina migration command, where user-supplied data that is inserted into a stringified JSON lacks proper sanitization. The internal method 'addVariablesToCode' fails to validate inputs containing the 'TINA_INTERNAL:::(.*?):::' marker, allowing attackers with control over a Forestry-style project to inject malicious JavaScript into the generated code files. When a developer executes 'tinacms dev' or 'tinacms build', this injected code runs with the developer’s privileges, leading to potential exploitation of the environment. The problem has been rectified in version 2.4.3.
Affected Version(s)
tinacms < 2.4.3
