{"id":"CVE-2026-108259","revision":"a9a7488ca0de463aa35ee5d851da7618","records":[{"revision":"a9a7488ca0de463aa35ee5d851da7618","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-108259","aliases":[],"title":"Tina: Code injection via unescaped Git branch name in generated client source","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.","state":0,"publishedAt":"2026-10-09T20:36:41.777+00:00","modifiedAt":"2026-10-14T02:12:59.336+00:00","affected":[{"ecosystem":"Vendor product","name":"tinacms","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"tinacms\",\n                    \"product\": \"tinacms\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.0.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"cli","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"@tinacms\",\n                    \"product\": \"cli\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.0.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","score":8.2,"severity":"HIGH"}],"references":["https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","https://github.com/tinacms/tinacms/pull/7526","https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde","https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-108259","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-108259","identifiers":["CVE-2026-108259"]},"retained":false,"historicalAffected":[]}],"coverage":[]}