AploSec / Disclosures / CVE-2026-126774

High 8.8ReportedFixed in 2.4.2CWE-94npm

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

CVE-2026-126774 · published 2026-11-11

In plain words: this type of bug lets someone run their own code inside the application (code injection). A fixed release is listed.

Summary

CVE-2026-126774 affects @tinacms/mdx (npm) < 2.4.2: rich-text values written unescaped into MDX expressions (CWE-94). Fixed in 2.4.2. CVSS 4.0 base score 8.8 (High), assigned by VulnCheck. Published 2026-11-11 by VulnCheck. Credit: Zachariah Mithani.

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

Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

Remediation

Upgrade @tinacms/mdx to 2.4.2 or later. Releases in the affected range (< 2.4.2) are vulnerable. See the linked advisory for details on affected release lines.

Timeline

  • 2026-11-11 CVE published

References

Severity
High 8.8CVSS 4.0, scored by VulnCheck in the CVE record
Package
@tinacms/mdx
Ecosystem
npm
Affected
< 2.4.2
Fixed
2.4.2
Weakness
CWE-94
CNA
VulnCheck
Credit
Zachariah Mithanifinder