CVE-2026-39315
JavaScript vulnerability analysis and mitigation

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 (javascript:, data:, vbscript:). The decoder uses two regular expressions with fixed-width digit caps. The HTML5 specification imposes no limit on leading zeros in numeric character references. When a padded entity exceeds the regex digit cap, the decoder silently skips it. The undecoded string is then passed to startsWith('javascript:'), which does not match. makeTagSafe() writes the raw value directly into SSR HTML output. The browser's HTML parser decodes the padded entity natively and constructs the blocked URI. This vulnerability is fixed in 2.1.13.


SourceNVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-39983HIGH8.6
  • JavaScriptJavaScript
  • basic-ftp
NoYesApr 09, 2026
CVE-2026-39974HIGH8.5
  • JavaScriptJavaScript
  • n8n-mcp
NoYesApr 09, 2026
CVE-2026-39942HIGH8.5
  • JavaScriptJavaScript
  • directus
NoYesApr 09, 2026
CVE-2026-39943MEDIUM6.5
  • JavaScriptJavaScript
  • directus
NoYesApr 09, 2026
CVE-2026-39315MEDIUM6.1
  • JavaScriptJavaScript
  • unhead
NoYesApr 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management