npm
CVE-2026-126774
@tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text Values
- Severity
- High 8.8
- Published
- 11 Nov 2026
- Last changed
- 16 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.4.2
- Exploit chance
- 0.4% in the next 30 daysHigher than 30% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Code injection (CWE-94)
- Attack
- Over the network · Only under certain conditions · Needs a user account · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N- Sources
- CVE Program
Description
@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.
Affected software
| Software | Affected versions |
|---|---|
@tinacms/mdxnpm · osv:npm:@tinacms/mdx |
|
About @tinacms/mdx
- Weekly downloads (npm)
- 62,727npm, 24 Nov 2026
This is the only vulnerability in @tinacms/mdx in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126774