Arbitrary Code Injection Affecting @tinacms/cli package, versions <3.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.33% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-TINACMSCLI-22132604
  • published2 Nov 2026
  • disclosed9 Oct 2026
  • creditCAN QUANG HIEU

Introduced: 9 Oct 2026

CVE-2026-108259  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade @tinacms/cli to version 3.0.0 or higher.

Overview

@tinacms/cli is a package used to set up your project with Tina Cloud configuration, and run a local version of the Tina Cloud content-api.

Affected versions of this package are vulnerable to Arbitrary Code Injection via string interpolation in the generated client builder (codegen/index.ts and codegen/codegen/plugin.ts) when constructing JavaScript source code. The API URL incorporates the git branch name, which is attacker-controlled on a pull request from a fork. Because values are interpolated directly between single quotes without escaping, a quote character in the branch name closes the string literal early and causes the remainder to execute as arbitrary JavaScript code in the generated client.

CVSS Base Scores

version 4.0
version 3.1