RCE in Tinacms @Tinacms/mdx
CVE-2026-126774
@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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.004, 31.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- github.com/tinacms/tinacms/security/advisories/GHSA-6vw5-w22x-ghxv (vendor-advisory)
- github.com/tinacms/tinacms/pull/7958 (issue-tracking, patch)
- github.com/tinacms/tinacms/commit/19285c6deeee52c380e8b2fdeafedc9530dc0618 (patch)
- github.com/tinacms/tinacms/releases/tag/@tinacms/mdx@2.4.2 (release-notes)
- github.com/tinacms/tinacms/blob/@tinacms/mdx@0.60.3/packages/@tinacms/mdx/src/s… (technical-description)
- www.vulncheck.com/advisories/tinacms-mdx-before-2.4.2-code-injection-via-mdx-se… (third-party-advisory)