@tinacms/mdx Code Injection via MDX Serializer Rich-Text Values
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
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
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
- 2026-11-11 Threatist record created from CVE-2026-126774
- 2026-11-11 Alias added: GHSA-8rw5-7g6c-cvqx
- 2026-11-16 CISA SSVC decision points changed
References
Patch 2
More tinacms vulnerabilities
- 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
Sources
- CVE-2026-126774 · CVE Program
- CVE-2026-126774 · NVD
- FIRST EPSS
- GHSA-8rw5-7g6c-cvqx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences