# CVE-2026-108259: Tina: Code injection via unescaped Git branch name in generated client source

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-09T20:36:41.777Z
- Modified: 2026-10-16T20:04:29.760Z
- Also known as: GHSA-pwhx-cvv3-qj5c
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tinacms tinacms: < 3.0.0
- @tinacms cli: < 3.0.0
- @tinacms/cli (npm): before 3.0.0

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`

## References

- <https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c> (exploit, web)
- <https://github.com/tinacms/tinacms/pull/7526> (web)
- <https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde> (web)
- <https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0> (web)
- <https://github.com/tinacms/tinacms> (package)

## Sources

- CVE List: [CVE-2026-108259](https://www.cve.org/CVERecord?id=CVE-2026-108259), CVE Terms of Use, modified 2026-10-14
- GitHub Advisory Database: [GHSA-pwhx-cvv3-qj5c](https://github.com/advisories/GHSA-pwhx-cvv3-qj5c), CC-BY-4.0, modified 2026-10-09
- NVD: [CVE-2026-108259](https://nvd.nist.gov/vuln/detail/CVE-2026-108259), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-108259 · Whole record: https://cve.day/CVE-2026-108259.json · Rebuilt by cve.day 2026-11-25T22:59:43.358Z
