CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-108259

CVE-2026-108259: Code Injection in @tinacms/cli via Unsanitized Git Branch Name Interpolation

Amit Schendel
Amit Schendel
Senior Security Researcher

Oct 10, 2026·5 min read·25 visits

Executive Summary (TL;DR)

Unsanitized Git branch names allow remote code execution in @tinacms/cli during automated CI/CD builds and Vercel preview deployments.

@tinacms/cli prior to version 3.0.0 dynamically constructs client source files using string interpolation without properly sanitizing runtime configuration variables. An attacker with permissions to create a branch or pull request can inject arbitrary JavaScript statements via a crafted Git ref name, leading to execution during automated build processes.

Vulnerability Overview

The package @tinacms/cli within the tinacms/tinacms monorepo provides CLI tools and code generation functionality for TinaCMS applications. During the build phase, @tinacms/cli executes automated code generation scripts that emit a TypeScript client configuration file (client.ts). This generated file initializes the TinaCMS client with specific runtime parameters, such as the Content API endpoint URL, authorization tokens, and caching directories.

The dynamic API URL construction mechanism extracts the current Git branch reference from hosting environment variables, including VERCEL_GIT_COMMIT_REF, GITHUB_BRANCH, or the local HEAD ref. In @tinacms/cli versions prior to 3.0.0, these extracted branch names and other configuration properties were directly interpolated into single- or double-quoted string literals within the generated JavaScript source code without escaping.

Because Git reference names permit characters such as single quotes (') and double quotes ("), a remote attacker capable of submitting a pull request or pushing a branch with a specially formatted name can escape the quote boundary. When the build system compiles or executes the generated client.ts module, the injected JavaScript executes with the full privileges of the underlying Node.js runner process.

Root Cause Analysis

The fundamental flaw resides in packages/@tinacms/cli/src/next/codegen/index.ts and packages/@tinacms/cli/src/next/codegen/codegen/plugin.ts. The template generation logic uses template string interpolation to emit TypeScript code.

Specifically, the apiURL string is constructed using the active Git ref name. When building the configuration object for createClient, the code generator wraps apiURL, token, cacheDir, and errorPolicy inside literal quote marks:

// Unpatched snippet in index.ts
export const client = createClient({ ${
  this.noClientBuildCache === false
    ? `cacheDir: '${normalizePath(this.configManager.generatedCachePath)}', `
    : ''
}url: ${this.localContentBuild ? `process.env.TINA_LOCAL_URL || '${apiURL}'` : `'${apiURL}'`}, token: '${token}', queries, ${
  errorPolicy ? `errorPolicy: '${errorPolicy}'` : ''
} });

If apiURL contains a single quote, the resulting output file contains premature quote termination. For example, a branch named feature/';require('child_process').execSync('id');// evaluates into the following emitted code:

export const client = createClient({
  url: 'https://content.tinajs.io/content/feature/';require('child_process').execSync('id');//',
  token: '',
  queries
});

This constitutes CWE-94 (Improper Control of Generation of Code). The failure to treat variable inputs as literal values allows arbitrary statement injection at module loading time.

Code Analysis & Patch Assessment

To fix the vulnerability, the maintainers modified the code generator in commit d030d414d39e15de79bf36e4c728d57205e71dde. The fix replaces raw quote interpolation with JSON.stringify() calls across all dynamic configuration options.

Below is the patch diff applied to packages/@tinacms/cli/src/next/codegen/index.ts:

@@ -369,12 +369,16 @@ export default databaseClient;
 import { queries } from "./types.js";
 export const client = createClient({ ${
       this.noClientBuildCache === false
-        ? `cacheDir: '${normalizePath(
-            this.configManager.generatedCachePath
-          )}', `
+        ? `cacheDir: ${JSON.stringify(
+            normalizePath(this.configManager.generatedCachePath)
+          )}, `
         : ''
-    }url: ${this.localContentBuild ? `process.env.TINA_LOCAL_URL || '${apiURL}'` : `'${apiURL}'`}, token: '${token}', queries, ${
-      errorPolicy ? `errorPolicy: '${errorPolicy}'` : ''
+    }url: ${
+      this.localContentBuild
+        ? `process.env.TINA_LOCAL_URL || ${JSON.stringify(apiURL)}`
+        : JSON.stringify(apiURL)
+    }, token: ${JSON.stringify(String(token))}, queries, ${
+      errorPolicy ? `errorPolicy: ${JSON.stringify(String(errorPolicy))}` : ''
     } });
 export default client;

By leveraging JSON.stringify(), all dynamic values are converted into valid JSON string literals. Any internal quotes, backslashes, or control characters are automatically escaped (e.g., " becomes \"). This ensures that the generated output is strictly parsed as a string primitive, preventing syntax escape.

> [!NOTE] > The fix is complete for the identified code generation paths. Replacing string interpolation with explicit string serialization prevents code injection vectors across all dynamic variables in client.ts.

Exploitation Methodology

Exploitation relies on an automated deployment pipeline executing @tinacms/cli during branch or pull request preview builds. The attack flow follows these stages:

  1. Payload Crafting: An attacker creates a branch name formatted to break out of string literals, such as test';process.env.AWS_SECRET_ACCESS_KEY// or containing network exfiltration payloads.
  2. Pipeline Trigger: The attacker submits a pull request from a public fork or pushes the branch to a shared repository monitored by Vercel, Netlify, or GitHub Actions.
  3. Code Generation: The build runner executes tinacms build or similar CLI commands. The CLI reads the Git ref from environment variables (VERCEL_GIT_COMMIT_REF or GITHUB_BRANCH) and emits the unsanitized string into client.ts.
  4. Execution: The build process imports client.ts as part of the frontend compilation step. Node.js evaluates the top-level injected payload, executing code within the host runner.

Impact Assessment

Successful exploitation leads to full arbitrary code execution within the build runner container or Virtual Machine. The vulnerability carries a CVSS 3.1 base score of 8.2 with the vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N.

Primary impacts include:

  • Credential Theft: Exfiltration of environment variables, including repository tokens, deployment API keys, and cloud infrastructure credentials (AWS, GCP, Vercel).
  • Supply Chain Compromise: Injected code can alter build artifacts prior to deployment, embedding backdoors into production web applications.
  • Lateral Movement: Attackers with execution access on CI runners may pivot to internal networks connected to the build system.

Remediation & Mitigation Guidance

The primary remediation is upgrading @tinacms/cli to version 3.0.0 or higher.

Remediation Steps

  1. Update project dependencies using standard package managers:
    npm install @tinacms/cli@3.0.0
  2. Verify that package lockfiles (package-lock.json, yarn.lock, or pnpm-lock.yaml) reference @tinacms/cli version 3.0.0 or later.
  3. Re-run CI/CD pipelines to ensure updated code generation logic is active.

Temporary Workarounds

If immediate package updates cannot be applied:

  • Restrict automated preview builds from untrusted external repository forks.
  • Sanitize branch name environment variables (VERCEL_GIT_COMMIT_REF, GITHUB_BRANCH) in CI workflow scripts prior to invoking @tinacms/cli commands.

Official Patches

TinaCMSFix pull request #7526 sanitizing codegen template variables using JSON.stringify
TinaCMSOfficial release tag for @tinacms/cli version 3.0.0

Fix Analysis (1)

Technical Appendix

CVSS Score
8.2/ 10
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
EPSS Probability
0.12%
Top 100% most exploited
1,200
via GitHub Dependency Graph

Affected Systems

Applications using @tinacms/cli < 3.0.0CI/CD deployment pipelines utilizing TinaCMS automated code generationVercel and Netlify preview deployment workers handling TinaCMS projects

Affected Versions Detail

Product
Affected Versions
Fixed Version
@tinacms/cli
TinaCMS
< 3.0.03.0.0
AttributeDetail
CWE IDCWE-94 (Improper Control of Generation of Code)
CVSSv3.1 Score8.2 (High)
CVSS VectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
Attack VectorNetwork
Exploit StatusProof of Concept / Technical Explanation Available
CISA KEV StatusNot Listed
Affected Component@tinacms/cli (packages/@tinacms/cli)
Fixed Version3.0.0

MITRE ATT&CK Mapping

T1059Command and Scripting Interpreter
Execution
T1203Exploitation for Client Execution
Execution
CWE-94
Improper Control of Generation of Code ('Code Injection')

The software constructs all or part of a code segment using externally-influenced input, but it does not neutralize or incorrectly neutralizes elements that could alter the syntax or behavior of the intended code segment.

Known Exploits & Detection

GitHub Security AdvisoryAdvisory detailing code injection vulnerability via unsanitized Git ref interpolation in @tinacms/cli code generation.

Vulnerability Timeline

Vulnerability identified in @tinacms/cli dynamic code generation logic
2026-03-01
Fix commit d030d414d39e15de79bf36e4c728d57205e71dde merged via Pull Request #7526
2026-03-15
@tinacms/cli version 3.0.0 published to npm registry
2026-03-20
GitHub Security Advisory GHSA-pwhx-cvv3-qj5c published
2026-03-25

References & Sources

  • [1]GitHub Security Advisory GHSA-pwhx-cvv3-qj5c
  • [2]Fix Commit d030d414d39e15de79bf36e4c728d57205e71dde
  • [3]Fix Pull Request #7526
  • [4]Release Tag @tinacms/cli@3.0.0
  • [5]Official CVE Record CVE-2026-108259

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 13 hours ago•CVE-2026-63402
5.9

CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next

CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 14 hours ago•CVE-2026-58262
7.1

CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go

CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.

Alon Barad
Alon Barad
3 views•14 min read
•about 15 hours ago•CVE-2026-77423
7.5

CVE-2026-77423: Regular Expression Denial of Service (ReDoS) in JLine Built-in Less Viewer

CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.

Alon Barad
Alon Barad
5 views•10 min read
•about 16 hours ago•CVE-2026-63492
8.1

CVE-2026-63492 (Duplicate of CVE-2026-63304): OS Command Injection in WWBN AVideo Standalone API

CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 17 hours ago•CVE-2026-63476
4.3

CVE-2026-63476: Unbounded Memory Allocation and Denial of Service in isomorphic-git Packfile Delta Parser

CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 18 hours ago•CVE-2026-63410
5.9

CVE-2026-63410: Compiler-Induced Timing Side-Channel in secp256k1-native Scalar Multiplication

CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.

Alon Barad
Alon Barad
3 views•12 min read