AploSec / Disclosures / CVE-2026-126774
@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
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/tinacms-mdx-before-2.4.2-code-injection-via-mdx-serializer-rich-text-values
- Referencehttps://github.com/tinacms/tinacms/security/advisories/GHSA-6vw5-w22x-ghxv
- Fix pull requesthttps://github.com/tinacms/tinacms/pull/7958
- Fix commithttps://github.com/tinacms/tinacms/commit/19285c6deeee52c380e8b2fdeafedc9530dc0618
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-126774
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-126774
- 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