CVE-2026-54074 json
@tinacms/cli: Remote Code Execution via Forestry migration — unsanitised __TINA_INTERNAL__ marker in user-controlled YAML labels
published 2026-06-19 4 mo ago modified 2026-09-10 1 mo ago also GHSA-4936-9hrh-qqpw , EUVD-2026-41142
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @tinacms/cli 2.4.3
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 4 mo ago
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/tinacms/tinacms/security/advisories/GHSA-4936-9hrh-qqpw referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @tinacms/cli | <2.4.3 |
2.4.3 |
Affected products
- tinacms tinacms
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/tinacms/tinacms/pull/7006
web
-
github.com
/tinacms/tinacms/commit/77665ae73dd4f9563d339535e76fa811a8abdfbb
web
-
github.com
/tinacms/tinacms/security/advisories/GHSA-4936-9hrh-qqpw
exploit, web
-
github.com
/tinacms/tinacms
package
-
github.com
/tinacms/tinacms/releases/tag/@tinacms/cli@2.4.3
web
Sources
- CVE List CVE-2026-54074
- GitHub Advisory GHSA-4936-9hrh-qqpw
- NVD CVE-2026-54074
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.