# Tina: Code injection via unescaped Git branch name in generated client source

Advisory record · `GHSA-pwhx-cvv3-qj5c`

- **Identifiers:** `GHSA-pwhx-cvv3-qj5c` · `CVE-2026-108259`
- **State:** Confirmed
- **Severity:** CVSS 8.2 High
- **Critical:** No
- **Weakness (CWE):** [CWE-94](https://cwe.mitre.org/data/definitions/94.html)
- **Tags:** [Code injection](https://agentprime.io/advisories/tag/code-injection.md)
- **Published:** 9 Oct 2026
- **Updated:** 9 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 9 Oct 2026, 20:56 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `@tinacms/cli` (npm): affected `<3.0.0`; fixed in `3.0.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Tina's @tinacms/cli, in versions before 3.0.0, writes a Git branch name into the generated client.ts source without escaping it, so a branch name containing a single quote can break out of the string literal and inject a JavaScript expression that runs when the consumer build imports the generated client. An attacker who can create a branch or pull request that triggers a consumer build, such as a Vercel preview deployment, could run code with the build process's privileges, including access to environment variables. Upgrade to @tinacms/cli 3.0.0 or later, which is the listed fixed version.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.2 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0033, the 26th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 13:33 UTC: First seen by agentprime
- 31 Oct 2026, 13:33 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-pwhx-cvv3-qj5c)

## Sources

- [GitHub Advisory Database: GHSA-pwhx-cvv3-qj5c](https://github.com/advisories/GHSA-pwhx-cvv3-qj5c)
- [OSV: GHSA-pwhx-cvv3-qj5c](https://osv.dev/vulnerability/GHSA-pwhx-cvv3-qj5c)
- <https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c>
- <https://github.com/tinacms/tinacms/pull/7526>
- <https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde>
- <https://github.com/tinacms/tinacms>
- <https://github.com/tinacms/tinacms/releases/tag/@tinacms/cli@3.0.0>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-pwhx-cvv3-qj5c>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-pwhx-cvv3-qj5c/>. Everything for agents: <https://agentprime.io/llms.txt>.
