CVE-2026-31860
JavaScript vulnerability analysis and mitigation

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 starting with data- through to the final HTML. It only checks the prefix, not whether the key contains spaces or other characters that break HTML attribute parsing. This vulnerability is fixed in 2.1.11.


SourceNVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-p6x5-p4xf-cc4rCRITICAL9.8
  • JavaScriptJavaScript
  • math-codegen
NoYesApr 17, 2026
CVE-2026-41242CRITICAL9.4
  • JavaScriptJavaScript
  • librechat
NoYesApr 18, 2026
GHSA-v38x-c887-992fCRITICAL9.2
  • JavaScriptJavaScript
  • flowise
NoYesApr 18, 2026
CVE-2026-41265CRITICAL9.2
  • JavaScriptJavaScript
  • flowise
NoYesApr 18, 2026
CVE-2026-40346MEDIUM6.4
  • JavaScriptJavaScript
  • @nocobase/plugin-workflow-request
NoYesApr 18, 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