Code injection in Tina CLI via unescaped Git branch name
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
The tinacms and @tinacms/cli packages before 3.0.0 are affected. The CLI places a Git branch name into generated JavaScript string literals without escaping it, so a crafted branch name containing a quote can inject code (CWE-94). An attacker with low privileges who can create such a branch name can run code when a preview build imports the generated client, with the build process privileges, and can read credentials or change deployment artifacts.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade @tinacms/cli to 3.0.0, the fixed version listed for the npm package. The sources list no fixed version for tinacms.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA tinacms (tinacms) Fixed in 3.0.0
- Fix · CNA cli (@tinacms) Fixed in 3.0.0
- Fix · GHSA-pwhx-cvv3-qj5c @tinacms/cli (npm) Fixed in 3.0.0 Advisory →
Timeline
- 2026-10-10 Threatist record created from CVE-2026-108259
- 2026-10-10 Alias added: GHSA-pwhx-cvv3-qj5c
- 2026-10-10 Fix available: npm/@tinacms/[email protected] · GHSA-pwhx-cvv3-qj5c
- 2026-10-10 CVSS score added · GHSA-pwhx-cvv3-qj5c
- 2026-10-10 Weakness changed · GHSA-pwhx-cvv3-qj5c
- 2026-10-10 5 new references · GHSA-pwhx-cvv3-qj5c
- 2026-10-11 Priority changed: MEDIUM → LOW
- 2026-10-14 CISA SSVC decision points changed
- 2026-10-14 Priority changed: LOW → HIGH
References
Other 5
- 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/releases/tag/@tinacms/[email protected]
- https://github.com/tinacms/tinacms
More tinacms vulnerabilities
- TI-2026-22987 Cross-Origin File Exfiltration via CORS Misconfiguration + Path Traversal in TinaCMS CVSS 3.1CRITICAL 9.7
- TI-2026-70295 TinaCMS admin preview frames attacker-controlled origin CVSS 3.1CRITICAL 9.3
- TI-2026-45239 Tina: [Broken Access Control] letting any TinaCloud user authorize against any self-hosted site CVSS 3.1HIGH 8.8
- TI-2026-26851 @tinacms/graphql's `FilesystemBridge` Path Validation Can Be Bypassed via Symlinks or Junctions CVSS 3.1HIGH 8.8
- TI-2026-22988 Path Traversal Leading to Arbitrary File Read, Write and Delete in TinaCMS CVSS 3.1HIGH 8.4
- TI-2026-26850 @tinacms/graphql's Media Endpoints Can Escape the Media Root via Symlinks or Junctions CVSS 3.1HIGH 8.3
Sources
- CVE-2026-108259 · CVE Program
- CVE-2026-108259 · NVD
- FIRST EPSS
- GHSA-pwhx-cvv3-qj5c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences