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

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-19T21:15:16.000Z
- Modified: 2026-09-10T03:50:48.066Z
- Also known as: GHSA-4936-9hrh-qqpw
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tinacms tinacms: < 2.4.3
- @tinacms/cli (npm): before 2.4.3

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/tinacms/tinacms/security/advisories/GHSA-4936-9hrh-qqpw> (exploit, 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)

## Sources

- CVE List: [CVE-2026-54074](https://www.cve.org/CVERecord?id=CVE-2026-54074), CVE Terms of Use, modified 2026-07-02
- GitHub Advisory Database: [GHSA-4936-9hrh-qqpw](https://github.com/advisories/GHSA-4936-9hrh-qqpw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54074](https://nvd.nist.gov/vuln/detail/CVE-2026-54074), Public domain, modified 2026-07-02

---

Page: https://cve.day/CVE-2026-54074 · Whole record: https://cve.day/CVE-2026-54074.json · Rebuilt by cve.day 2026-11-25T22:59:26.958Z
