{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-31873","published":"2026-03-12T18:16:24.387000Z","last_modified":"2026-06-17T10:34:40.490000Z","status":"Analyzed","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"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":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-5339-hvwr-7582","ecosystem":"npm","name":"unhead","purl":"pkg:npm/unhead","ranges":[{"introduced":"0","fixed":"2.1.11"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2026-31873/","html_en":"/en/cve/CVE-2026-31873/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31873","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31873"},"untrusted":{"vendor_name":"Unjs","product_name":"Unhead","desc_en":"Unhead is a document head and template manager. Prior to 2.1.11, The link.href check in makeTagSafe (safe.ts) uses String.includes(), which is case-sensitive. Browsers treat URI schemes case-insensitively. DATA:text/css,... is the same as data:text/css,... to the browser, but 'DATA:...'.includes('data:') returns false. An attacker can inject arbitrary CSS for UI redressing or data exfiltration via CSS attribute selectors with background-image callbacks. 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-5339-hvwr-7582","tags":["Exploit","Mitigation","Vendor Advisory"]}]}}