CVE-2026-31860Disclosure(unjs / unhead)

LOWCVSS 6.1 · MEDIUM

Signal is active with 2 mentions in latest observed window

Immediate actions

  • Track advisory updates for patch or workaround availability

Recommended action window: Monitor and triage in normal cycle

NVD description

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 <head> 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.

0.0/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-79

Priority

LOW

Exploitation

NONE

PoC

YES

Patch

NONE

Momentum

NONE

Are you affected?

If you run products in this scope, you should treat this CVE as relevant to your environment.

  • unhead

Threat summary

  • 2 mentions across 1 observed day

What's happening

  • Technical details provided in 2 signals
  • Disclosure: 2 classified signals
  • 2 total mentions across 1 day

Affected systems

Vendors
Products
unhead

Deep dive

Activity timeline2 mentions / 1d
01122Mentions · 2026-03-12: 2Technical Details · 2026-03-12: 203-12
Signal classification1 categories
Disclosure
2100.0%
Referenced assets2 URLs
Full discourse2 posts
  • CVE@CVEnew
    Disclosure

    CVE-2026-31860 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… https://www.cve.org/CVERecord?id=CVE-2026-31860

    Post summary

    CVE-2026-31860 reveals that useHeadSafe() can be bypassed to inject arbitrary HTML attributes, enabling potential XSS or template injection via SSR.

    00000144
    56.7K followersView on X
  • DailyCVE@dailycve
    Disclosure

    🔴 Nuxt/Unhead XSS Bypass, #CVE-2026-31860 (Critical) https://dailycve.com/nuxt-unhead-xss-bypass-cve-2026-31860-critical/

    Post summary

    A new critical XSS bypass vulnerability (CVE‑2026‑31860) in Nuxt/Unhead has been disclosed, with the issue classified as XSS and marked critical.

    0000035
    168 followersView on X
CPE platform detail1 entries

1 of 1 entries

PartVendorProductVersionTarget SWTarget HW
Appunjsunhead---

Explore more