Nuxt UI v4.12.2

nuxt/ui
Share
Summary
Nuxt UI v4.12.2 addresses a critical security vulnerability related to SSR and untrusted markdown rendering, ensuring that non-plain tag names default to safe elements to prevent XSS attacks. Additionally, it fixes issues with malformed tag names and ensures that attributes added after component mount are retained.

Full release notes

🔒 Security

Completes the fix for GHSA-x9jw-j844-v24h. In 4.12.1, an as string carrying attributes (for example as="img src=x onerror=…") was written into the opening tag during SSR, so apps rendering untrusted markdown were still open to stored XSS, even with the latest comark or @nuxtjs/mdc. An as that isn't a plain tag name now falls back to the default element, and element-like template objects are rejected too. Update from 4.12.1 if you render markdown that users or an LLM can write.

🐛 Bug Fixes

  • components: ignore malformed tag names and element-like templates (bbd4e6e)
  • components: keep attributes added after mount (b93b4d2)

:green_heart: Contributors

  • @benjamincanac

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

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