{"id":"CVE-2026-31873","published":"2026-03-12T17:20:35Z","modified":"2026-03-12T17:46:46Z","title":"Unhead has a Bypass of URI Scheme Sanitization in makeTagSafe via Case-Sensitivity","vendor":"unjs","product":"unhead","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":0,"severity":"NONE","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00306,"percentile":0.15836,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/unjs/unhead/security/advisories/GHSA-5339-hvwr-7582","tags":["x_refsource_CONFIRM"]}],"priority":{"score":3.2,"factors":[{"name":"EPSS percentile","points":3.17}]},"vendorSlug":"unjs","affectedVersions":[{"vendor":"unjs","product":"unhead","versions":["< 2.1.11"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-12T17:46:23.897133Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"unhead","vulnerableRanges":["<2.1.11"],"patched":["2.1.11"],"from":["GHSA-5339-hvwr-7582"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-11640","exploited":false,"provenance":"source"}}