{"id":"CVE-2026-108259","published":"2026-10-09T20:36:41Z","modified":"2026-10-14T02:12:59Z","title":"Tina: Code injection via unescaped Git branch name in generated client source","vendor":"tinacms","product":"tinacms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00418,"percentile":0.27794,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tinacms/tinacms/pull/7526","tags":["x_refsource_MISC"]},{"url":"https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde","tags":["x_refsource_MISC"]},{"url":"https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":5.56},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"tinacms","affectedVersions":[{"vendor":"tinacms","product":"tinacms","versions":["< 3.0.0"]},{"vendor":"@tinacms","product":"cli","versions":["< 3.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-10-14T02:11:59.476043Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@tinacms/cli","vulnerableRanges":["<3.0.0"],"patched":["3.0.0"],"from":["GHSA-pwhx-cvv3-qj5c"],"provenance":"source"}],"summary":{"text":"Tina's @tinacms/cli, prior to version 3.0.0, is affected by a code injection flaw in its code generation step, where the Git branch name read from environment variables or HEAD is inserted unescaped into generated JavaScript string literals. An attacker who can get a crafted branch name into the repository, with the flaw triggered when the generated client module is imported during a preview build, could run injected code with the build process's privileges, allowing them to read environment credentials, modify deployment artifacts, or make network requests.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:40Z"},"euvd":{"id":"EUVD-2026-95987","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tinacms-cve-2024-45391","parents":[{"from":"CVE-2024-45391","to":"CVE-2026-108259","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/@tinacms/cli/src/next/codegen/index.ts"],"commits":["https://github.com/tinacms/tinacms/commit/110f1ceea4574d636a64526648f7c8bf6539b26a","https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde"],"basis":"rarely changed file"}]}]}}