🔒 Security
This release fixes GHSA-x9jw-j844-v24h, a critical issue where untrusted markdown rendered through Nuxt UI components could run code on the server.
You're affected if your app server renders markdown that users or an LLM can write (chat messages, comments, CMS previews) with comark, @nuxtjs/mdc or @nuxt/content. Sites that only render their own markdown files aren't. Update to 4.12.1 even if you already updated comark or @nuxtjs/mdc, they don't cover every case on their own.
Components no longer render an as value or an icon that is a plain object with a template string or a forged VNode, and an as like script or iframe falls back to the default element. Passing a { template } component as as or as an icon, which only worked with the runtime compiler, now renders the default element instead.
🐛 Bug Fixes
- components: ignore components compiled from a template string (7e07a52)
- ContentSearch: stop escaping result text twice (#7374) (21ee243)
💚 Contributors
Full Changelog: v4.12.0...v4.12.1