Skip to content

CVE-2026-54074 @tinacms/cli: Remote Code Execution via Forestry migration — unsanitised __TINA_INTERNAL__ marker in user-controlled YAML labels

HighCVSS 7.8 EPSS 0.25%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
tinacms @tinacms/cli(npm) < 2.4.3 2.4.3 Fixed
tinacms = < 2.4.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
tinacms = < 2.4.3 No fix listed
tinacms @tinacms/cli(npm) < 2.4.3 2.4.3

References