npm @nuxt/ui 4.12.2
v4.12.2

45 minutes ago

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

💚 Contributors

Full Changelog: v4.12.1...v4.12.2

Don't miss a new ui release

NewReleases is sending notifications on new releases.