High · 8.2 Node.js & npm GHSA-pwhx-cvv3-qj5c CVE-2026-108259 GHSA-c42q-qvc3-j6vg CVE-2026-108260
Two Tina CMS Vulnerabilities Allow Code Injection During Builds and Stored XSS in Rendered Content
Tina CMS has fixed two vulnerabilities: a code injection flaw in @tinacms/cli triggered by malicious Git branch names during preview builds, and a stored cross-site scripting issue in @tinacms/web-components caused by unvalidated link URLs in rendered rich text.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
Two separate vulnerabilities have been disclosed in Tina, a headless content management system. The first affects the @tinacms/cli package and allows code injection during preview builds through a maliciously crafted Git branch name. The second affects @tinacms/web-components and allows stored cross-site scripting through unvalidated link URLs in rendered rich-text content. Both issues have been fixed by the vendor. This briefing covers what happened, why it matters, and what action is recommended.
What happened
Two vulnerabilities were identified in Tina CMS components. CVE-2026-108259 (GHSA-pwhx-cvv3-qj5c) affects @tinacms/cli: the tool reads Git branch values from environment variables (VERCEL_GIT_COMMIT_REF, GITHUB_BRANCH) or HEAD, and incorporates the raw value into an API URL that is interpolated into generated JavaScript string literals during code generation. A Git-valid branch name containing a quote character can terminate the generated string and inject an expression that executes when the generated client module is imported during a preview build. CVE-2026-108260 (GHSA-c42q-qvc3-j6vg) affects @tinacms/web-components: the tina-markdown element assigns a rich-text node's URL value directly to an anchor href without validating the URL scheme, allowing a content author to store a link using a script-capable scheme.
Technical cause
For CVE-2026-108259, the root cause is improper control of generation of code (CWE-94): raw, unescaped Git branch names are embedded into generated JavaScript source files (packages/@tinacms/cli/src/next/codegen/index.ts and packages/@tinacms/cli/src/next/codegen/codegen/plugin.ts) without proper string escaping, allowing a crafted branch name to break out of the intended string literal and inject executable code. For CVE-2026-108260, the root cause is improper neutralization of input during web page generation, a form of cross-site scripting (CWE-79): the tina-markdown element writes a node.url value directly into an anchor's href attribute without checking that the URL scheme is safe for rendering as a clickable link.
Why it matters
In the @tinacms/cli case, injected code runs with the privileges of the build process, meaning it could read environment credentials, modify deployment artifacts, or make network requests during a preview build. This is rated 8.2 (CVSS 3.1: AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N), reflecting network attack vector, high attack complexity, required low-privilege access, no user interaction, a changed scope, and high confidentiality and integrity impact with no availability impact. In the @tinacms/web-components case, a visitor who clicks a maliciously crafted link executes attacker-controlled script in the site's origin, which can access same-origin application data; if the visitor is an editor or administrator, this may expose credentials stored by the TinaCMS admin interface on that origin. This is rated 7.6 (CVSS 3.1: AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N), reflecting network attack vector, low attack complexity, required low-privilege access and user interaction, a changed scope, high confidentiality impact, and low integrity impact with no availability impact.
Who is affected
Organizations using @tinacms/cli for preview builds that incorporate Git branch names into generated client code are affected by CVE-2026-108259, particularly in environments where branch names can be influenced by external contributors (for example, through pull requests). Sites using @tinacms/web-components to render rich-text content with links are affected by CVE-2026-108260, particularly where content authors are not fully trusted or where link URLs can originate from less-trusted sources.
Affected versions
@tinacms/cli: versions from 0 up to and including 2.7.0 are affected by CVE-2026-108259; the issue is fixed in version 3.0.0. @tinacms/web-components: versions from 0 up to and including 0.2.0 are affected by CVE-2026-108260; the issue is fixed in version 0.2.1.
Fixes and mitigation
For CVE-2026-108259, the fix is available in @tinacms/cli version 3.0.0, which addresses the unescaped interpolation of Git branch values into generated code. For CVE-2026-108260, the fix is available in @tinacms/web-components version 0.2.1, which addresses the missing URL scheme validation on rendered links.
Recommended action
Update @tinacms/cli to version 3.0.0 or later to remediate CVE-2026-108259. Update @tinacms/web-components to version 0.2.1 or later to remediate CVE-2026-108260. Review build environments to ensure Git branch names originating from external or untrusted sources cannot be used to influence preview builds, and review any existing rich-text content for stored links that may reference non-standard URL schemes.
PatchBriefing score
8.2 / 10 · High
Official CVSS: 8.2
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
EPSS 0.0042 (28 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- @tinacms/cli ≥ 0 < 3.0.0
- vulnerable
- @tinacms/cli <= 2.7.0
- vulnerable
- ≥ 3.0.0
- patched
- @tinacms/web-components ≥ 0 < 0.2.1
- vulnerable
- @tinacms/web-components <= 0.2.0
- vulnerable
- ≥ 0.2.1
- patched
Reported fixes
For CVE-2026-108259, the fix is available in @tinacms/cli version 3.0.0, which addresses the unescaped interpolation of Git branch values into generated code. For CVE-2026-108260, the fix is available in @tinacms/web-components version 0.2.1, which addresses the missing URL scheme validation on rendered links.
How this was built
6 source records were collected, matched and used to prepare the report above.
-
OSV.dev database
-
OSV.dev database
-
NVD (NIST) database
-
NVD (NIST) database
-
GitHub Advisory Database database
-
GitHub Advisory Database database
Revision history
- Generated
- Generated
- Published
- Generated