{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-31860","published":"2026-03-12T18:16:24.227000Z","last_modified":"2026-06-17T10:34:38.983000Z","status":"Analyzed","cvss":{"version":"4.0","score":5.3,"severity":"MEDIUM","vector":"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","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:unjs:unhead:*:*:*:*:*:*:*:*","part":"a","vendor":"unjs","product":"unhead","version_end_excluding":"2.1.11"}],"cpes_truncated":false,"vendors":["unjs"],"products":["unjs/unhead"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-g5xx-pwrp-g3fv","ecosystem":"npm","name":"unhead","purl":"pkg:npm/unhead","ranges":[{"introduced":"0","fixed":"2.1.11"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2026-31860/","html_en":"/en/cve/CVE-2026-31860/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31860","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31860"},"untrusted":{"vendor_name":"Unjs","product_name":"Unhead","desc_en":"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.","affected":[{"untrusted_vendor":"unjs","untrusted_product":"unhead","versions":[]}],"references":[{"url":"https://github.com/unjs/unhead/security/advisories/GHSA-g5xx-pwrp-g3fv","tags":["Exploit","Mitigation","Vendor Advisory"]}]}}