@tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text Values
CVE-2026-126774Published 11 Nov 2026, 18:41 UTC
Real-world risk
1.8/ 10Low
Routine
If the vulnerable configuration applies to you: 4.1
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.8
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from VulnCheck)
@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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| @tinacms/mdxNiche | < 2.4.2 | 2.4.2 |
What to do
Update to a fixed version: 2.4.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 37), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.270
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.27 × threat 0.851.836
- Rounded to one decimal between 0.1 and 101.8
Exploitation and evidence timeline
- 11 Nov 2026 Published
- 3 Dec 2026 Risk 1.8 (cvss fallback)
Weakness
CWE-94
References
- https://github.com/tinacms/tinacms/security/advisories/GHSA-6vw5-w22x-ghxvvendor-advisory
- https://github.com/tinacms/tinacms/pull/7958issue-tracking, patch
- https://github.com/tinacms/tinacms/commit/19285c6deeee52c380e8b2fdeafedc9530dc0618patch
- https://github.com/tinacms/tinacms/releases/tag/%40tinacms/mdx%402.4.2release-notes
- https://github.com/tinacms/tinacms/blob/%40tinacms/mdx%400.60.3/packages/%40tinacms/mdx/src/stringify/acorn.ts#L81technical-description
- https://www.vulncheck.com/advisories/tinacms-mdx-before-2.4.2-code-injection-via-mdx-serializer-rich-text-valuesthird-party-advisory
- CVE-2026-126774 on CVE.org