CVE-2026-108259 Details
Description
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.
A code injection vulnerability has been identified in TinaCMS's headless content management system, specifically in the @tinacms/cli package, versions prior to 3.0.0. The issue arises from the CLI tool reading raw Git branch names from environment variables and directly incorporating them into API URLs without proper escaping. This allows for the injection of arbitrary JavaScript code that executes when the generated client module is imported during a preview build. The injected code runs with the privileges of the build process, potentially accessing sensitive environment variables, modifying deployment artifacts, or making unauthorized network requests.
Users can update to @tinacms/cli version 3.0.0 or later, where this vulnerability has been fixed. The update process can be done through npm by installing the latest version of the @tinacms/cli package.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 9, 2026CISA-ADP
Assessed Oct 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/tinacms/tinacms/commit/d030d414d39e15de79bf36e4c728d57205e71dde | [email protected] | Source CodeVendor |
| https://github.com/tinacms/tinacms/pull/7526 | [email protected] | Issue TrackingVendor |
| https://github.com/tinacms/tinacms/releases/tag/@tinacms/[email protected] | [email protected] | Release NotesVendor |
| https://github.com/tinacms/tinacms/security/advisories/GHSA-pwhx-cvv3-qj5c | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| TinaCMS | All versions |
CPE
Remediation
| |
| TinaCMS CLI | <= 2.7.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 14, 2026 | CVE Modified | CISA-ADP |
| Oct 9, 2026 | New CVE Received | [email protected] |
Volerion