CVE Explorer
CVE-2026-31873
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"unhead","vendor":"unjs","versions":[{"status":"affected","version":"< 2.1.11"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:7c0df46379d67e6aa12d281a334990d72e8c2182944f552de87ef9634570b985 · sha256:13116f99d2431d7e… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":0,"baseSeverity":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:7c0df46379d67e6aa12d281a334990d72e8c2182944f552de87ef9634570b985 · sha256:13116f99d2431d7e… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:7c0df46379d67e6aa12d281a334990d72e8c2182944f552de87ef9634570b985 · sha256:13116f99d2431d7e… · /containers/cna/problemTypes/0/descriptions/0
Source references
1 source assertion{"name":"https://github.com/unjs/unhead/security/advisories/GHSA-5339-hvwr-7582","tags":["x_refsource_CONFIRM"],"url":"https://github.com/unjs/unhead/security/advisories/GHSA-5339-hvwr-7582"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7c0df46379d67e6aa12d281a334990d72e8c2182944f552de87ef9634570b985 · sha256:13116f99d2431d7e… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.