{"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-108259 exists.","fix":"Upgrade @tinacms/cli to 3.0.0 or later.","what":"CVE-2026-108259 is a high-severity code injection vulnerability in @tinacms cli, published on 9 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-108259 and fix it if it is affected.\n\nWhat it is: CVE-2026-108259 is a high-severity code injection vulnerability in @tinacms cli, published on 9 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-108259 exists.\n\nAffected packages and fixed versions:\n- @tinacms/cli (npm): affected all versions; fixed in 3.0.0\n- @tinacms/cli (npm): affected all versions; fixed in 3.0.0\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-108259/ (Markdown: https://insights.sbomify.com/CVE-2026-108259/index.md)","id":"CVE-2026-108259","markdown":"https://insights.sbomify.com/CVE-2026-108259/index.md","name":"CVE-2026-108259","record":{"aliases":["GHSA-pwhx-cvv3-qj5c"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"TinaCMS CLI","requires_auth":"low_privilege","summary":"Attackers can inject code via crafted Git branch names in TinaCMS CLI, leading to arbitrary code execution during build processes.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Tina is a headless content management system. Prior to 3.0.0, @tinacms/cli reads Git branch values from VERCEL_GIT_COMMIT_REF, GITHUB_BRANCH, or HEAD, incorporates the raw value into the API URL, and interpolates that URL into JavaScript string literals in packages/@tinacms/cli/src/next/codegen/index.ts and packages/@tinacms/cli/src/next/codegen/codegen/plugin.ts. A crafted Git-valid branch name containing a quote can terminate the generated string and inject an expression that executes when the generated client module is imported during a preview build. The injected code runs with the build process privileges and can read environment credentials, modify deployment artifacts, or make network requests. This issue is fixed in version 3.0.0.","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":"Tina: Code injection via unescaped Git branch name in generated client source","id":"CVE-2026-108259","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"@tinacms/web-components: `tina-markdown` writes rich-text link URLs into `href` without scheme validation, allowing stored XSS","id":"CVE-2026-108260"},"packages":[{"ecosystem":"npm","fixed":["3.0.0"],"introduced":["0"],"last_affected":[],"package":"@tinacms/cli","purl":null,"source":"GHSA-pwhx-cvv3-qj5c"},{"ecosystem":"npm","fixed":["3.0.0"],"introduced":["0"],"last_affected":[],"package":"@tinacms/cli","purl":"pkg:npm/%40tinacms/cli","source":"GHSA-pwhx-cvv3-qj5c"}],"prev":{"headline":"Shiny for Python - Path traversal in bookmark restore","id":"CVE-2026-108258"},"products":["cli","tinacms"],"published":"2026-10-09","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-10-14","vendors":["@tinacms","tinacms"]},"summary":"Attackers can inject code via crafted Git branch names in TinaCMS CLI, leading to arbitrary code execution during build processes.","url":"https://insights.sbomify.com/CVE-2026-108259/"}