Back to list

Tina: Code injection via unescaped Git branch name in generated client source — GHSA-PWHX-CVV3-QJ5C

GitHub · GitHub · GHSA-PWHX-CVV3-QJ5C

ID
GHSA-PWHX-CVV3-QJ5C
Date
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
8.2

Summary

### Summary `@tinacms/cli` inserts the raw Git branch value into the generated `client.ts` source without escaping or encoding. A Git-valid branch name can close the string literal and inject an arbitrary JavaScript expression that executes when the consumer build imports the generated client module. ### Affected component - **Source (branch read):** `packages/@tinacms/cli/src/cmds/init/templates/config.ts` lines…

Timeline

Published by source
2026-10-09

Risk context

  • Reported severity or threat level: high.
  • Reported CVSS score: 8.2 out of 10.
  • Review exposure for the affected product or family: npm: @tinacms/cli.

Product

npm: @tinacms/cli

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Evidence and provenance

Canonical advisory ID
GHSA-PWHX-CVV3-QJ5C
Source
GitHub
Vendor
GitHub
Published by source
2026-10-09
Last source activity
2026-10-09
Additional identifiers
CVE-2026-108259
Curated by
hlukh.ch

Related advisories and connections

These advisories are connected by shared CVE, product, vendor, source, or time signals.