{"answers":{"affected":"6 open source packages ship an affected version, including @tinacms/cli, @tinacms/graphql and tinacms. It affects 3 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-68278 exists.","fix":"Upgrade @tinacms/cli to 2.0.4 or later.","what":"CVE-2025-68278 is a high-severity code injection vulnerability in tinacms, published on 18 Dec 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-68278 and fix it if it is affected.\n\nWhat it is: CVE-2025-68278 is a high-severity code injection vulnerability in tinacms, published on 18 Dec 2025. Any signed-in user can exploit it over the 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-2025-68278 exists.\n\nAffected packages and fixed versions:\n- @tinacms/cli (npm): affected all versions; fixed in 2.0.4\n- @tinacms/cli (npm): affected all versions; fixed in 2.0.4\n- @tinacms/graphql (npm): affected all versions; fixed in 2.0.3\n- @tinacms/graphql (npm): affected all versions; fixed in 2.0.3\n- tinacms (npm): affected all versions; fixed in 3.1.1\n- tinacms (npm): affected all versions; fixed in 3.1.1\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-2025-68278/ (Markdown: https://insights.sbomify.com/CVE-2025-68278/index.md)","id":"CVE-2025-68278","markdown":"https://insights.sbomify.com/CVE-2025-68278/index.md","name":"CVE-2025-68278","record":{"aliases":["GHSA-529f-9qwm-9628"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Headless CMS library","requires_auth":"low_privilege","summary":"Attackers controlling markdown content can execute arbitrary code via insecure gray-matter usage in Tina CMS.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tinacms","vendor":"ssw"},{"product":"tinacms\\/cli","vendor":"ssw"},{"product":"tinacms\\/graphql","vendor":"ssw"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Tina is a headless content management system. In tinacms prior to version 3.1.1, tinacms uses the gray-matter package in an insecure way allowing attackers that can control the content of the processed markdown files, e.g., blog posts, to execute arbitrary code. tinacms version 3.1.1, @tinacms/cli version 2.0.4, and @tinacms/graphql version 2.0.3 contain a fix for the issue.","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 vulnerable to arbitrary code execution","id":"CVE-2025-68278","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":6,"n_references":2,"next":{"headline":"Weblate has an arbitrary file read via symbolic links","id":"CVE-2025-68279"},"packages":[{"ecosystem":"npm","fixed":["2.0.4"],"introduced":["0"],"last_affected":[],"package":"@tinacms/cli","purl":null,"source":"GHSA-529f-9qwm-9628"},{"ecosystem":"npm","fixed":["2.0.4"],"introduced":["0"],"last_affected":[],"package":"@tinacms/cli","purl":"pkg:npm/%40tinacms/cli","source":"GHSA-529f-9qwm-9628"},{"ecosystem":"npm","fixed":["2.0.3"],"introduced":["0"],"last_affected":[],"package":"@tinacms/graphql","purl":null,"source":"GHSA-529f-9qwm-9628"},{"ecosystem":"npm","fixed":["2.0.3"],"introduced":["0"],"last_affected":[],"package":"@tinacms/graphql","purl":"pkg:npm/%40tinacms/graphql","source":"GHSA-529f-9qwm-9628"},{"ecosystem":"npm","fixed":["3.1.1"],"introduced":["0"],"last_affected":[],"package":"tinacms","purl":null,"source":"GHSA-529f-9qwm-9628"},{"ecosystem":"npm","fixed":["3.1.1"],"introduced":["0"],"last_affected":[],"package":"tinacms","purl":"pkg:npm/tinacms","source":"GHSA-529f-9qwm-9628"}],"prev":{"headline":"OpenEMR allows links sent via Secure Messaging to be opened in OpenEMR and Portal","id":"CVE-2025-68277"},"products":["tinacms"],"published":"2025-12-18","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":"US public information, NVD API terms","name":"NVD"},{"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":"2025-12-18","vendors":["tinacms"]},"summary":"Attackers controlling markdown content can execute arbitrary code via insecure gray-matter usage in Tina CMS.","url":"https://insights.sbomify.com/CVE-2025-68278/"}