Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-108259— Tina: Code injection via unescaped Git branch name in generated client source

Quick assessment

Affected
tinacms tinacms
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Tina 是一个无头内容管理系统。在 3.0.0 版本之前, 会从环境变量 、 或 中读取 Git 分支值,并将该原始值拼接到 API URL 中,随后将该 URL 插值到以下文件中的 JavaScript 字符串字面量中: 和 。 一个精心构造的、包含引号的 Git 有效分支名称可以终止生成的字符串,并注入一段表达式。当在预览构建过程中导入生成的客户端模块时,该表达式将被执行。注入的代码以构建过程的权限运行,可以读取环境变量中的凭据、修改部署产物,或发起网络请求。 该问题已在 3.0.0 版本中修复。

CVSS 8.2 · High EPSS 0.25% · P15

Affected Version Matrix 2

VendorProduct Version RangeStatus
@tinacms cli < 3.0.0 affected
tinacms tinacms < 3.0.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-108259

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Tina: Code injection via unescaped Git branch name in generated client source
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
tinacms tinacms < 3.0.0 -
@tinacms cli < 3.0.0 -

II. Public POCs for CVE-2026-108259

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-108259

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-108259 (2)

Vendor Advisories for CVE-2026-108259 (1)

Vendor Pages for CVE-2026-108259 (1)

Same Patch Batch · tinacms · 2026-10-09 · 3 CVEs total

CVE-2026-108261 9.3 CRITICAL TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment
CVE-2026-108260 7.6 HIGH @tinacms/web-components: `tina-markdown` writes rich-text link URLs into `href` without sc

IV. Related Vulnerabilities

V. Comments for CVE-2026-108259

No comments yet


Leave a comment