Approved changes feed: RSS · Atom
cpe:2.3:a:unjs:unhead:*:*:*:*:*:*:*:*
part: a version: * update: *
| Vendor | Unjs (b9c5145d-4490-5a57-bc54-95e579348a71) |
|---|---|
| Product | Unhead (10b091f0-52a6-5f9e-898f-54f9aa6a6045) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | * |
| Target hardware | * |
| Other | * |
| Notes | Imported from purl2cpe mapping |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
pkg:github/unjs/unhead |
purl2cpe | 2026-06-01 10:11:35.417698 |
pkg:npm/unhead |
purl2cpe | 2026-06-01 10:11:35.417700 |
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2026-39315 |
vulnerable | 2026-06-08 08:01:16.166384 |
Unhead has a hasDangerousProtocol() bypass via leading-zero padded HTML entities in useHeadSafe()
MEDIUM (6.1)
Unhead is a document head and template manager. Prior to 2.1.13, useHeadSafe() is the composable that Nuxt's own documentation explicitly recommends for rendering user-supplied content in <head> safely. Internally, the hasDangerousProtocol() function in packages/unhead/src/plugins/safe.ts decodes HTML entities before checking for blocked URI schemes (javascript:, data:, vbscript:). The decoder uses two regular expressions with fixed-width digit caps. The HTML5 specification imposes no limit on leading zeros in numeric character references. When a padded entity exceeds the regex digit cap, the decoder silently skips it. The undecoded string is then passed to startsWith('javascript:'), which does not match. makeTagSafe() writes the raw value directly into SSR HTML output. The browser's HTML parser decodes the padded entity natively and constructs the blocked URI. This vulnerability is fixed in 2.1.13.
Published: 2026-04-09T17:54:07.488Z
Updated: 2026-04-13T15:38:52.507Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2026-31873 |
vulnerable | 2026-06-08 07:57:16.026789 |
Unhead has a Bypass of URI Scheme Sanitization in makeTagSafe via Case-Sensitivity
NONE
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-03-12T17:46:46.723Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2026-31860 |
vulnerable | 2026-06-08 07:57:16.005344 |
Unhead has a XSS bypass in `useHeadSafe` via attribute name injection and case-sensitive protocol check
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.
Published: 2026-03-12T17:18:20.452Z
Updated: 2026-03-13T16:26:51.670Z |
Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.