# CVE-2026-126774: @tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text Values

- Severity: High 8.8 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-11-11T18:41:07.073Z
- Modified: 2026-11-16T19:17:33.180Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- tinacms @tinacms/mdx: before 2.4.2 (not affected: 2.4.2)

## Every score

- VulnCheck: CVSS:4.0 8.8 High `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`
- VulnCheck: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`

## References

- <https://github.com/tinacms/tinacms/security/advisories/GHSA-6vw5-w22x-ghxv> (vendor-advisory)
- <https://github.com/tinacms/tinacms/pull/7958> (issue-tracking, patch)
- <https://github.com/tinacms/tinacms/commit/19285c6deeee52c380e8b2fdeafedc9530dc0618> (patch)
- <https://github.com/tinacms/tinacms/releases/tag/%40tinacms/mdx%402.4.2> (release-notes)
- <https://github.com/tinacms/tinacms/blob/%40tinacms/mdx%400.60.3/packages/%40tinacms/mdx/src/stringify/acorn.ts#L81> (technical-description)
- <https://www.vulncheck.com/advisories/tinacms-mdx-before-2.4.2-code-injection-via-mdx-serializer-rich-text-values> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-126774](https://www.cve.org/CVERecord?id=CVE-2026-126774), CVE Terms of Use, modified 2026-11-16
- NVD: [CVE-2026-126774](https://nvd.nist.gov/vuln/detail/CVE-2026-126774), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-126774 · Whole record: https://cve.day/CVE-2026-126774.json · Rebuilt by cve.day 2026-11-25T22:59:50.404Z
