Vulnerabilities/

Unhead has XSS bypass in `useHeadSafe` via attribute name injection and case-sensitive protocol check

Severity:
Medium

Description

useHeadSafe() can be bypassed to inject arbitrary HTML attributes, including event handlers, into SSR-rendered <head> tags. This is the composable that Nuxt docs recommend for safely handling user-generated content.

Recommendation

Update the unhead package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
unhead
Anything's wrong? Let us know Last updated on March 12, 2026