Skip to main content

Tinacms MDX EUVDEUVD-2026-123768

| CVE-2026-126774 HIGH
Code Injection (CWE-94)
2026-11-11 VulnCheck GHSA-8rw5-7g6c-cvqx
8.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as content editor
  2. Delivery
    Save crafted highlight/string-list value in Tina form
  3. Exploit
    Value breaks out of unescaped MDX expression in stored .mdx
  4. Execution
    @mdx-js/mdx evaluate compiles and runs injected JS
  5. Impact
    Code 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

@tinacms/mdx 0 <2.4.2

Affected Packages

euvd tinacms_mdx fix: 2.4.2

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

Vendor (VulnCheck) PRIMARY 8.8 HIGH
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
vuln.today AI 8.2 HIGH

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Low
niche open-source Git-based headless CMS, modest production footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy