Nuxt UI v4.12.1

nuxt/ui
Share
Summary
Nuxt UI v4.12.1 addresses a critical security vulnerability related to untrusted markdown rendering, which could allow code execution on the server. Additionally, it includes bug fixes for component rendering issues and the ContentSearch component to prevent double escaping of result text.

Full release notes

🔒 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)

:green_heart: Contributors

  • @benjamincanac
  • @onmax

Full Changelog: https://github.com/nuxt/ui/compare/v4.12.0...v4.12.1

Latest Nuxt UI releases

All releases

Latest articles about Nuxt UI

Vibe Coding a Collaborative Editor with Comment Support with Nuxt UI and Jazz

Vibe Coding a Collaborative Editor with Comment Support with Nuxt UI and Jazz

VueSchool