CVE-2026-54074
HIGH 7.8CVSS 3.1@tinacms/cli: Remote Code Execution in @tinacms/cli via Forestry migration — unsanitised __TINA_INTERNAL__ marker in user-controlled YAML labels
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.
- Published
- 1 Jul 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-94
- Also known as
- GHSA-4936-9hrh-qqpw
- Sources
- NVDJSONOSV GHSA-4936-9hrh-qqpwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @tinacms/cli | < 2.4.3 | 2.4.3 |
References
- https://github.com/tinacms/tinacms/security/advisories/GHSA-4936-9hrh-qqpw · WEB
- https://github.com/tinacms/tinacms/pull/7006 · WEB
- https://github.com/tinacms/tinacms/commit/77665ae73dd4f9563d339535e76fa811a8abdfbb · WEB
- https://github.com/tinacms/tinacms · PACKAGE
- https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@2.4.3 · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 1 Jul 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 19 Jun 2026)