{"answers":{"affected":"2 open source packages ship an affected version, including @tinacms/cli.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54074 exists.","fix":"Upgrade @tinacms/cli to 2.4.3 or later.","what":"CVE-2026-54074 is a high-severity code injection vulnerability in tinacms, published on 1 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-54074 and fix it if it is affected.\n\nWhat it is: CVE-2026-54074 is a high-severity code injection vulnerability in tinacms, published on 1 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54074 exists.\n\nAffected packages and fixed versions:\n- @tinacms/cli (npm): affected all versions; fixed in 2.4.3\n- @tinacms/cli (npm): affected all versions; fixed in 2.4.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-54074/ (Markdown: https://insights.sbomify.com/CVE-2026-54074/index.md)","id":"CVE-2026-54074","markdown":"https://insights.sbomify.com/CVE-2026-54074/index.md","name":"CVE-2026-54074","record":{"aliases":["GHSA-4936-9hrh-qqpw"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"TinaCMS CLI","requires_auth":"none","summary":"Attackers can inject arbitrary JavaScript into generated files via unsanitized YAML labels, leading to code execution when developers run the CLI.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"@tinacms/cli: Remote Code Execution in @tinacms/cli via Forestry migration — unsanitised __TINA_INTERNAL__ marker in user-controlled YAML labels","id":"CVE-2026-54074","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"ArcadeDB: Read-only users can mutate database schema (incomplete fix of CVE-2026-44221)","id":"CVE-2026-54076"},"packages":[{"ecosystem":"npm","fixed":["2.4.3"],"introduced":["0"],"last_affected":[],"package":"@tinacms/cli","purl":null,"source":"GHSA-4936-9hrh-qqpw"},{"ecosystem":"npm","fixed":["2.4.3"],"introduced":["0"],"last_affected":[],"package":"@tinacms/cli","purl":"pkg:npm/%40tinacms/cli","source":"GHSA-4936-9hrh-qqpw"}],"prev":{"headline":"VeraCrypt: Hidden volume quick format weakens plausible deniability","id":"CVE-2026-54073"},"products":["tinacms"],"published":"2026-07-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-02","vendors":["tinacms"]},"summary":"Attackers can inject arbitrary JavaScript into generated files via unsanitized YAML labels, leading to code execution when developers run the CLI.","url":"https://insights.sbomify.com/CVE-2026-54074/"}