CVE-2026-54074

Tina is a headless content management system. @tinacms/cli versions prior to 2.4.3 contain a Remote Code Execution vulnerability in the Forestry-to-Tina migration command. The internal helper addVariablesToCode unquotes any value matching the marker "__TINA_INTERNAL__:::(.*?):::" inside the stringified collection JSON. User-supplied label and name fields from .forestry/**/*.yml are placed into that JSON without any sanitisation. An attacker who controls a Forestry-style project can therefore inject arbitrary JavaScript into the generated tina/templates.{ts,js} file. The injected code is written at module top level, so it executes the moment the developer runs tinacms dev or tinacms build, with the developer's privileges. This issue has been fixed in version 2.4.3.
Configurations

No configuration.

History

02 Jul 2026, 16:16

Type Values Removed Values Added
References () https://github.com/tinacms/tinacms/security/advisories/GHSA-4936-9hrh-qqpw - () https://github.com/tinacms/tinacms/security/advisories/GHSA-4936-9hrh-qqpw -

01 Jul 2026, 21:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-01 21:17

Updated : 2026-07-02 17:45


NVD link : CVE-2026-54074

Mitre link : CVE-2026-54074

CVE.ORG link : CVE-2026-54074


JSON object : View

Products Affected

No product.

CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')