@tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text Values
- State
- Published
- Severity
- 8.8 High
- Published
- Nov 11, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 11, 2026
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.
| Product | Versions |
|---|---|
| @tinacms/mdx tinacms | before 2.4.2 Affected2.4.2 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.8 High | VulnCheck | |
| 3.1 | 8.2 High | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- GitHub Security Advisory (GHSA-6vw5-w22x-ghxv)Vendor Advisory
- https://github.com/tinacms/tinacms/pull/7958PatchIssue Tracker
- https://github.com/tinacms/tinacms/commit/19285c6deeee52c380e8b2fdeafedc9530dc0618Patch
- @tinacms/mdx %40tinacms Release NotesRelease Notes
- https://github.com/tinacms/tinacms/blob/%40tinacms/mdx%400.60.3/packages/%40tinacms/mdx/src/stringify/acorn.ts#L81Technical Details
- VulnCheck Advisory: @tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text ValuesThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.