Unjs Unhead vulnerabilities
3 known vulnerabilities affecting unjs/unhead.
Total CVEs
3
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
MEDIUM3
Vulnerabilities
Page 1 of 1
CVE-2026-39315MEDIUMCVSS 6.1fixed in 2.1.132026-04-09
CVE-2026-39315 [MEDIUM] CWE-184 CVE-2026-39315: Unhead is a document head and template manager. Prior to 2.1.13, useHeadSafe() is the composable tha
Unhead is a document head and template manager. Prior to 2.1.13, useHeadSafe() is the composable that Nuxt's own documentation explicitly recommends for rendering user-supplied content in safely. Internally, the hasDangerousProtocol() function in packages/unhead/src/plugins/safe.ts decodes HTML entities before checking for blocked URI schemes (javas
ghsanvdosv
CVE-2026-31860MEDIUMCVSS 5.3fixed in 2.1.112026-03-12
CVE-2026-31860 [MEDIUM] CWE-79 CVE-2026-31860: Unhead is a document head and template manager. Prior to 2.1.11, useHeadSafe() can be bypassed to in
Unhead is a document head and template manager. Prior to 2.1.11, useHeadSafe() can be bypassed to inject arbitrary HTML attributes, including event handlers, into SSR-rendered tags. This is the composable that Nuxt docs recommend for safely handling user-generated content. The acceptDataAttrs function (safe.ts, line 16-20) allows any property key sta
ghsanvdosv
CVE-2026-31873MEDIUMCVSS 6.1fixed in 2.1.112026-03-12
CVE-2026-31873 [MEDIUM] CWE-79 CVE-2026-31873: Unhead is a document head and template manager. Prior to 2.1.11, The link.href check in makeTagSafe
Unhead is a document head and template manager. Prior to 2.1.11, The link.href check in makeTagSafe (safe.ts) uses String.includes(), which is case-sensitive. Browsers treat URI schemes case-insensitively. DATA:text/css,... is the same as data:text/css,... to the browser, but 'DATA:...'.includes('data:') returns false. An attacker can inject arbitrary
ghsanvdosv