CVE-2026-126774
published high CVSS 4.0 · 8.8@tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text Values
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| tinacms | — | @tinacms/mdx0 to < 2.4.2 (affected · semver) · 2.4.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.2 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tinacms | @tinacms/mdx | 0 to < 2.4.2 (affected · semver)2.4.2 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
6- https://github.com/tinacms/tinacms/blob/%40tinacms/mdx%400.60.3/packages/%40tinacms/mdx/src/stringify/acorn.ts#L81
- https://github.com/tinacms/tinacms/commit/19285c6deeee52c380e8b2fdeafedc9530dc0618
- https://github.com/tinacms/tinacms/pull/7958
- @tinacms/mdx %40tinacms Release Notes https://github.com/tinacms/tinacms/releases/tag/%40tinacms/mdx%402.4.2
- GitHub Security Advisory (GHSA-6vw5-w22x-ghxv) https://github.com/tinacms/tinacms/security/advisories/GHSA-6vw5-w22x-ghxv
- VulnCheck Advisory: @tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text Values https://www.vulncheck.com/advisories/tinacms-mdx-before-2.4.2-code-injection-via-mdx-serializer-rich-text-values
Provider assertions
2VulnCheck · cna
@tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text Values
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- baae8a231c99f6f8f492d7a6e790c769ee6b12413c30cad990c109116fb39afb
- Ingested
- 16 Nov 2026, 18:28:27 UTC
- Source record
- Official CVE record