{"id":"CVE-2026-108259","state":"PUBLISHED","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.","publishedAt":"2026-10-09T20:36:41.777Z","updatedAt":"2026-10-14T02:12:59.336Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["tinacms tinacms","@tinacms cli"],"affected":[{"vendor":"tinacms","product":"tinacms","versions":[{"version":"< 3.0.0","status":"affected"}]},{"vendor":"@tinacms","product":"cli","versions":[{"version":"< 3.0.0","status":"affected"}]}],"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"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:10:33.477Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/108xxx/CVE-2026-108259.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-108259","state":"PUBLISHED","datePublished":"2026-10-09T20:36:41.777Z","dateUpdated":"2026-10-14T02:12:59.336Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-09T17:33:15.409Z"},"containers":{"cna":{"title":"Tina: Code injection via unescaped Git branch name in generated client source","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"tinacms","product":"tinacms","versions":[{"version":"< 3.0.0","status":"affected"}]},{"vendor":"@tinacms","product":"cli","versions":[{"version":"< 3.0.0","status":"affected"}]}],"references":[{"url":"https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","name":"https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tinacms/tinacms/pull/7526","name":"https://github.com/tinacms/tinacms/pull/7526","tags":["x_refsource_MISC"]},{"url":"https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde","name":"https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde","tags":["x_refsource_MISC"]},{"url":"https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0","name":"https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-09T20:37:19.094Z"},"source":{"advisory":"GHSA-pwhx-cvv3-qj5c","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-14T02:11:59.476043Z","id":"CVE-2026-108259","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-14T02:12:59.336Z"}}]}}}