{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-108259","id":"CVE-2026-108259","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 c","descriptionLong":"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.","published":"2026-10-09T20:36:41.777Z","updated":"2026-10-28T02:30:47.356382009Z","reserved":"2026-10-09T17:33:15.409Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["tinacms","@tinacms cli"],"affectedProducts":[{"vendor":"tinacms","product":"tinacms","defaultStatus":null,"versions":[{"version":"< 3.0.0","status":"affected"}],"platforms":[]},{"vendor":"@tinacms","product":"cli","defaultStatus":null,"versions":[{"version":"< 3.0.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@tinacms/cli","purl":"pkg:npm/%40tinacms/cli","ranges":["<3.0.0"],"fixed":["3.0.0"],"advisory":"GHSA-pwhx-cvv3-qj5c"}],"cwes":["CWE-94"],"aliases":["GHSA-pwhx-cvv3-qj5c"],"references":[{"url":"https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/tinacms/tinacms/pull/7526","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108259.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108259","tags":["advisory"]},{"url":"https://github.com/tinacms/tinacms","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00332,"epssPercentile":0.27038,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-108259","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108259","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-108259","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pwhx-cvv3-qj5c","ok":true,"note":"GHSA-pwhx-cvv3-qj5c"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-108259","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}