Read the docs

@tinacms/mdx Code Injection via MDX Serializer Rich-Text Values

Priority MEDIUM 40CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.

Summary

@tinacms/mdx before 2.4.2 contains a code injection flaw in its MDX serializer, which is tracked as CWE-94. The serializer writes rich-text values into MDX expressions without escaping them, so crafted values can break out of list field or highlightColor expressions. An authenticated content editor can exploit this by saving such values, and the injected JavaScript can run in visitors' browsers or on build and server-side rendering hosts.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

Description from the CNA

@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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00367 31st percentileScored 2026-11-16
Fix Fixed @tinacms/mdx (tinacms): 2.4.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
tinacms@tinacms/mdxbefore 2.4.22.4.2Patch availableCNA
  • @tinacms/mdx Vendortinacms Affected before 2.4.2 Fixed in 2.4.2 Patch available CNA

Remediation

Update @tinacms/mdx to version 2.4.2, which fixes the flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

  • Fix · CNA @tinacms/mdx (tinacms) Fixed in 2.4.2

Timeline

  1. 2026-11-11 Threatist record created from CVE-2026-126774
  2. 2026-11-11 Alias added: GHSA-8rw5-7g6c-cvqx
  3. 2026-11-16 CISA SSVC decision points changed

References

  • TI-2026-22987 Cross-Origin File Exfiltration via CORS Misconfiguration + Path Traversal in TinaCMS CVSS 3.1CRITICAL 9.7
  • TI-2026-70295 TinaCMS admin preview frames attacker-controlled origin CVSS 3.1CRITICAL 9.3
  • TI-2026-45239 Tina: [Broken Access Control] letting any TinaCloud user authorize against any self-hosted site CVSS 3.1HIGH 8.8
  • TI-2026-26851 @tinacms/graphql's `FilesystemBridge` Path Validation Can Be Bypassed via Symlinks or Junctions CVSS 3.1HIGH 8.8
  • TI-2026-22988 Path Traversal Leading to Arbitrary File Read, Write and Delete in TinaCMS CVSS 3.1HIGH 8.4
  • TI-2026-70293 Code injection in Tina CLI via unescaped Git branch name CVSS 3.1HIGH 8.2
See all 21 →

Sources