← News
Tinacms/mdx: Code injection allows JavaScript execution
HighAI-generated2026-11-16
- CVE
- CVE-2026-126774
- Severity
- High (CVSS 8.2)
- Attack conditions
- Remotely, over the network · A regular user account is needed · No user action needed
- Exploitation probability (EPSS)
- 0.3% (within 30 days; FIRST EPSS, 15 November 2026)
Summary
Tinacms/mdx versions prior to 2.4.2 are vulnerable to code injection. Authenticated editors can embed malicious code that runs in browsers or on server-side rendering hosts.
Details
According to the NVD record, the MDX serializer in Tinacms/mdx before version 2.4.2 fails to escape rich-text values when writing them into MDX expressions. This flaw lets authenticated content editors store crafted values that break out of list field or highlightColor expressions in the saved .mdx file.
An attacker who exploits this can cause JavaScript to run in the browsers of visitors or on the machines that build and render the site server-side, potentially compromising user data or the host environment.
What to do
Upgrade to version 2.4.2 or later.
Sources
Timeline
- 11 November 2026 NVD record published
- 16 November 2026 This article was written