{"cve":"CVE-2026-108259","nvd":{"published":"2026-10-09T21:17:04.017","modified":"2026-10-16T20:04:29.760","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-94"],"references":["https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde","https://github.com/tinacms/tinacms/pull/7526","https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0","https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c","https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:58:01.639778232+00:00"},"epss":{"cve":"CVE-2026-108259","score":0.00332,"percentile":0.26112,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-pwhx-cvv3-qj5c","url":"https://osv.dev/vulnerability/GHSA-pwhx-cvv3-qj5c","summary":"Tina: Code injection via unescaped Git branch name in generated client source","modified":"2026-10-09T21:15:04.859057455Z","packages":[{"ecosystem":"npm","name":"@tinacms/cli","purl":"pkg:npm/%40tinacms/cli","ranges":["<3.0.0"],"fixed":["3.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}