Vulnerability in Unhead Document Head and Template Manager by Unjs
CVE-2026-39315
6.1MEDIUM
What is CVE-2026-39315?
The Unhead document head and template manager prior to version 2.1.13 contains a vulnerability related to the 'useHeadSafe()' composable. This vulnerability arises from the processing of user-supplied content in tags. Specifically, the 'hasDangerousProtocol()' function decodes HTML entities before verifying blocked URI schemes. Due to a limitation in the regular expressions used for decoding, leading zeros in numeric character references can bypass the intended security checks, allowing potentially malicious JavaScript to execute when the browser parses unfiltered content. The vulnerability is addressed in version 2.1.13.
Affected Version(s)
unhead < 2.1.13
