{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-31873","id":"CVE-2026-31873","title":"Unhead has a Bypass of URI Scheme Sanitization in makeTagSafe via Case-Sensitivity","description":"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","descriptionLong":"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.","published":"2026-03-12T17:20:35.660Z","updated":"2026-10-28T02:30:52.294266782Z","reserved":"2026-03-09T19:02:25.014Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":0,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","rating":"none","source":"GitHub_M"},"metrics":[{"version":"3.1","score":0,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","rating":"none","source":"GitHub_M"},{"version":"3.1","score":0,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","rating":"none","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":0,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","rating":"none","source":"OSV"},{"version":"3.1","score":0,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","rating":"none","source":"GitHub"}],"rating":"none","products":["unjs unhead"],"affectedProducts":[{"vendor":"unjs","product":"unhead","defaultStatus":null,"versions":[{"version":"< 2.1.11","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"unhead","purl":"pkg:npm/unhead","ranges":["<2.1.11"],"fixed":["2.1.11"],"advisory":"GHSA-5339-hvwr-7582"}],"cwes":["CWE-79"],"aliases":["GHSA-5339-hvwr-7582"],"references":[{"url":"https://github.com/unjs/unhead/security/advisories/GHSA-5339-hvwr-7582","tags":["x_refsource_CONFIRM","Exploit","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31873.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31873","tags":["advisory"]},{"url":"https://github.com/unjs/unhead","tags":["package"]},{"url":"https://github.com/unjs/unhead/releases/tag/v2.1.11","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00268,"epssPercentile":0.19331,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-31873","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31873","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-31873","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5339-hvwr-7582","ok":true,"note":"GHSA-5339-hvwr-7582"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31873","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}