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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| tinacms | @tinacms/mdx | < 2.4.2 | 2.4.2 |
References
- GitHub Security Advisory (GHSA-6vw5-w22x-ghxv) vendor-advisory
- https://github.com/tinacms/tinacms/pull/7958 patch issue-tracking
- https://github.com/tinacms/tinacms/commit/19285c6deeee52c380e8b2fdeafedc9530dc0618 patch
- @tinacms/mdx %40tinacms Release Notes release-notes
- https://github.com/tinacms/tinacms/blob/%40tinacms/mdx%400.60.3/packages/%40tinacms/mdx/src/stringify/acorn.ts#L81 technical-description
- VulnCheck Advisory: @tinacms/mdx before 2.4.2 Code Injection via MDX Serializer Rich-Text Values third-party-advisory