CVE-2026-31860 is a medium-severity HTML attribute injection vulnerability affecting unjs unhead versions prior to 2.1.11. It allows an attacker to bypass the `useHeadSafe()` function, intended for secure content handling, to inject arbitrary HTML attributes and event handlers into server-side rendered <head> tags. Rated CVSS 6.1, this vulnerability has a network attack vector and low complexity, but requires user interaction, potentially leading to low impact on confidentiality and integrity. There is currently no evidence of active exploitation, public exploit code, or significant community discussion or media coverage. Organizations utilizing unjs unhead should upgrade to version 2.1.11 or later to mitigate this risk.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 2.1.11CPE matchmatch criteria | cpe:2.3:a:unjs:unhead:*:*:*:*:*:*:*:* |
CVSS version used by this source: 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.
The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.