CVE-2026-126774: @tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text Values

Published Nov 11, 2026
·
Updated

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

Event History

Nov 11, 2026
CVE Published
via MITRE·06:41 PM
Data Sourced
via MITRE·06:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated content editor who can save crafted rich-text values can exploit it. The vulnerable serializer writes those values into stored .mdx files without escaping them.

2

Which content fields are implicated?

The issue can be triggered by values that break out of list field expressions or highlightColor expressions in the generated MDX.

3

Where can the injected JavaScript execute?

Injected code can execute in visitors' browsers and may also execute on build hosts or server-side rendering hosts that process the affected .mdx content.

4

What version resolves the vulnerability?

Upgrade @tinacms/mdx to version 2.4.2 or later. Versions before 2.4.2 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203