{"api_version":"1","generated_at":"2026-10-11T00:30:23+00:00","cve":"CVE-2026-108259","urls":{"html":"https://cve.report/CVE-2026-108259","api":"https://cve.report/api/cve/CVE-2026-108259.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-108259","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-108259"},"summary":{"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":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-10-09 21:17:04","updated_at":"2026-10-09 21:17:04"},"problem_types":["CWE-94","CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"8.2","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","baseScore":8.2,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"8.2","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","data":{"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"}}],"references":[{"url":"https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde","name":"https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"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","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","name":"https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/tinacms/tinacms/pull/7526","name":"https://github.com/tinacms/tinacms/pull/7526","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-108259","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108259","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"tinacms","product":"tinacms","version":"affected < 3.0.0","platforms":[]},{"source":"CNA","vendor":"@tinacms","product":"cli","version":"affected < 3.0.0","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"108259","cve":"CVE-2026-108259","epss":"0.002520000","percentile":"0.153630000","score_date":"2026-10-10","updated_at":"2026-10-11 00:07:43"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"tinacms","vendor":"tinacms","versions":[{"status":"affected","version":"< 3.0.0"}]},{"product":"cli","vendor":"@tinacms","versions":[{"status":"affected","version":"< 3.0.0"}]}],"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."}],"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","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-10-09T20:37:19.094Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","tags":["x_refsource_CONFIRM"],"url":"https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c"},{"name":"https://github.com/tinacms/tinacms/pull/7526","tags":["x_refsource_MISC"],"url":"https://github.com/tinacms/tinacms/pull/7526"},{"name":"https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde","tags":["x_refsource_MISC"],"url":"https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde"},{"name":"https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0","tags":["x_refsource_MISC"],"url":"https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0"}],"source":{"advisory":"GHSA-pwhx-cvv3-qj5c","discovery":"UNKNOWN"},"title":"Tina: Code injection via unescaped Git branch name in generated client source"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-108259","datePublished":"2026-10-09T20:36:41.777Z","dateReserved":"2026-10-09T17:33:15.409Z","dateUpdated":"2026-10-09T20:37:19.094Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-09 21:17:04","lastModifiedDate":"2026-10-09 21:17:04","problem_types":["CWE-94","CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","baseScore":8.2,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE"},"exploitabilityScore":1.8,"impactScore":5.8}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"108259","Ordinal":"1","Title":"Tina: Code injection via unescaped Git branch name in generated ","CVE":"CVE-2026-108259","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"108259","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Tina: Code injection via unescaped Git branch name in generated "}]}}}