Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as content editor
-
DeliverySave crafted highlight/string-list value in Tina form
-
ExploitValue breaks out of unescaped MDX expression in stored .mdx
-
Execution@mdx-js/mdx evaluate compiles and runs injected JS
-
ImpactCode executes in visitor browser or on build/SSR host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated content editor account or a valid editor token (PR:L) - reachable through the normal Tina form via the GraphQL rich-text mutation, with no raw API access needed. The injectable sinks are a rich-text component string/datetime/reference/image list field or the highlightColor mark. Crucially, code execution only occurs on sites that evaluate or compile the resulting MDX: client-side (e.g. next-mdx-remote) runs it in each visitor's browser, and build-time/SSR (e.g. @mdx-js/mdx or Astro MDX) runs it on the server. LIMITING FACTOR: sites that render rich text only through Tina's TinaMarkdown component, with no MDX evaluation, are not affected at all; this plus the required editor privilege are the main constraints on real-world risk. Affected versions: @tinacms/mdx < 2.4.2; fixed in 2.4.2. The only complete fix stated by the vendor is upgrading to 2.4.2; the documented workaround is to render with TinaMarkdown instead of evaluating MDX and to restrict editor access to trusted users. |
| Impact | This is a genuine, well-corroborated code-injection flaw (CWE-94/CWE-116) rather than an inflated high-CVSS issue, but its real-world urgency is moderated by two factors. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N) confirms network reach with no user interaction, but PR:L means an authenticated content editor (or anyone holding an editor token) is required - this is not an unauthenticated internet-facing bug. The AT:P (attack requirement) is the key limiter: exploitation only reaches code execution on sites that actually compile or evaluate the MDX (e.g. next-mdx-remote client-side, or @mdx-js/mdx / Astro MDX at build/SSR time); sites that render exclusively through Tina's TinaMarkdown component are not affected, so a meaningful fraction of deployments are out of scope. The VI:H/VC:H plus SC:H/SI:H (subsequent-system high impact) correctly capture that injected JavaScript crosses the editor trust boundary into visitors' browsers or the build/SSR host. No EPSS score, CISA KEV listing, or confirmed weaponized exploit is present in the input, so there is no evidence of active exploitation; however, the GHSA/VulnCheck advisories include concrete working payloads, which lowers the bar for exploitation. The vuln.today decision label is 'this_week', consistent with a patch-available, authenticated, conditionally-exploitable flaw - a priority to remediate promptly but not an emergency. Net: treat this as a real near-term priority for any Tina site that evaluates MDX and grants editor access beyond fully trusted staff; de-prioritize for TinaMarkdown-only sites. |
| Exploit ScenarioDerived | A content editor (or an attacker who has phished or stolen an editor token) opens a Tina form and enters a crafted value in a rich-text string-list field or a highlightColor mark - for example a highlight colour of 'red", x: (globalThis.__PWN="highlight"), y: "'. Because the serializer interpolated the value unescaped, the saved .mdx breaks out of the JSX expression, and when @mdx-js/mdx evaluate compiles the file the injected JavaScript executes in each visitor's browser (client-evaluated MDX) or on the build/SSR host. The advisory publishes working proof-of-concept payloads for both the highlightColor and string-list paths. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
Code injection in the @tinacms/mdx serializer (all versions before 2.4.2) lets an authenticated content editor, or anyone holding a valid editor token, plant executable JavaScript inside saved .mdx files by supplying a crafted string, datetime, reference or image list value on a rich-text component, or a highlightColor containing an embedded double quote. The injected expression then runs wherever the site evaluates or compiles the MDX - in each visitor's browser on client-side setups such as next-mdx-remote, or on the build or SSR host with @mdx-js/mdx or Astro MDX - producing cross-boundary script execution with high confidentiality and integrity impact (assessed CVSS 3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N). Sites that render rich text only through Tina's TinaMarkdown component with no MDX evaluation are not exposed, no public exploit code has been reported at the time of analysis, and the issue is not listed in CISA KEV; vendor fixes are already released.
RemediationAI
Upgrade @tinacms/mdx to 2.4.2, the vendor-released patch (pull request https://github.com/tinacms/tinacms/pull/7958, commit 19285c6deeee52c380e8b2fdeafedc9530dc0618, advisory https://github.com/tinacms/tinacms/security/advisories/GHSA-6vw5-w22x-ghxv); the vendor states this is the only complete fix. If upgrading is not immediately possible, the documented workaround is to render rich text through Tina's TinaMarkdown component instead of evaluating or compiling the MDX - the trade-off is that MDX component evaluation features are lost for that content - and to restrict editor access to trusted users, which reduces but does not eliminate exposure since any valid editor token is sufficient. Note that 2.4.2 also changes content behaviour: number and boolean list values must be genuine literals or the save fails naming the field, cleared number fields are stored as null, negative numbers and image lists on rich-text components now load correctly, and a highlight colour containing characters invalid for a CSS colour is dropped while the text remains highlighted, so existing content that relies on the old lenient serialization should be reviewed after the upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in the MDX serialization layer of @tinacms/mdx, the package that turns Tina's rich-text JSON into JSX/MDX source written to .mdx files. Two serializer paths built attribute values by naive string interpolation: src/stringify/acorn.ts emitted string, datetime, reference and image list items as "${item}" (with number and boolean list items emitted unquoted), and src/stringify/marks.ts emitted the highlightColor mark as { backgroundColor: "${value}" }. A double quote inside the value closes the string literal and the remainder becomes executable code, which matches CWE-94 (code injection) with CWE-116 (improper encoding/escaping) as the root cause class - the serializer produced code-shaped output from untrusted data without literal escaping. Object-typed fields were already handled through printObjectLiteral and were not affected, and the GraphQL rich-text mutation passes editor input straight to serializeMDX, so an ordinary string-list field in the Tina form reaches the sink without raw API access. The advisory documents the resulting shapes, for example a list item serializing to tags={["x"+(globalThis.__PWN="list-string")+""]} and a highlight colour serializing to a style object with an injected property. Execution only occurs when the emitted file is compiled or evaluated - @mdx-js/mdx evaluate or Astro MDX at build/SSR time, next-mdx-remote in the browser - so the vulnerability is a stored injection whose effect depends on the target site's rendering mode. The 2.4.2 fix emits list values as JSON string literals, validates that number and boolean values are real literals, and drops highlight colours containing characters a CSS colour cannot contain.
Know when Tinacms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
Authenticated editor (PR:L); AC:H because exploitation depends on the site evaluating MDX (AT:P analogue); S:C as injected code runs outside the editor trust boundary; C/I:H, A:N with no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
@tinacms/mdx before 2.4.2 contains a code injection vulnerability in its MDX serializer, which writes rich-text values into MDX expressions without escaping them. Authenticated content editors can save crafted values that break out of list field or highlightColor expressions in the stored .mdx file, executing JavaScript in visitors' browsers or on build and server-side rendering hosts.
Technical POC Analysis
CWE-94 (code injection; the advisory also tags CWE-116 output encoding).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-126774 is a high-severity code injection vulnerability in the @tinacms/mdx serializer affecting all versions before 2.4.2. It allows authenticated content editors to inject executable JavaScript into MDX files, which can execute in visitors' browsers or on build/SSR hosts, leading to data compromise and integrity loss. Leadership should care because this impacts the security of web properties, potentially exposing user data and damaging brand trust.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Cross-tenant authorization bypass in TinaCMS self-hosted deployments allows any holder of a legitimate TinaCloud account
Remote code execution in TinaCMS affects versions prior to 3.1.1, @tinacms/cli before 2.0.4, and @tinacms/graphql before
Cross-site request forgery in the TinaCMS CLI dev server allows an attacker-controlled web page to write arbitrary files
Broken access control across all four first-party TinaCMS production media adapters (next-tinacms-s3, next-tinacms-dos,
Off-origin preview framing in TinaCMS (tinacms <= 3.13.0 and @tinacms/app <= 2.5.13) lets an unauthenticated attacker wh
Code injection in @tinacms/cli versions up to and including 2.7.0 lets a crafted Git branch name break out of the string
Stored cross-site scripting in TinaCMS's @tinacms/web-components package (all versions up to and including 0.2.0) lets a
Authenticated users of the @tinacms/graphql npm package can write files outside the configured content root by directing
EUVD-2026-123768
GHSA-8rw5-7g6c-cvqx
NVD
CVE.org
EPSS
Exploit-DB