Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
NVD Vulnerability Details :
CVE-2026-39315
Analyzed
More InfoOfficial Page
Source-security-advisories@github.com
View Known Exploited Vulnerability (KEV) details
Published At-09 Apr, 2026 | 18:17
Updated At-14 Apr, 2026 | 20:07

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.16.1MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Type: Secondary
Version: 3.1
Base score: 6.1
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CPE Matches

unjs
unjs
>>unhead>>Versions before 2.1.13(exclusive)
cpe:2.3:a:unjs:unhead:*:*:*:*:*:node.js:*:*
Weaknesses
CWE IDTypeSource
CWE-184Secondarysecurity-advisories@github.com
CWE ID: CWE-184
Type: Secondary
Source: security-advisories@github.com
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/unjs/unhead/commit/961ea781e091853812ffe17f8cda17105d2d2299security-advisories@github.com
Patch
https://github.com/unjs/unhead/releases/tag/v2.1.13security-advisories@github.com
Product
Release Notes
https://github.com/unjs/unhead/security/advisories/GHSA-95h2-gj7x-gx9wsecurity-advisories@github.com
Exploit
Mitigation
Vendor Advisory
https://github.com/unjs/unhead/security/advisories/GHSA-95h2-gj7x-gx9w134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit
Mitigation
Vendor Advisory
Hyperlink: https://github.com/unjs/unhead/commit/961ea781e091853812ffe17f8cda17105d2d2299
Source: security-advisories@github.com
Resource:
Patch
Hyperlink: https://github.com/unjs/unhead/releases/tag/v2.1.13
Source: security-advisories@github.com
Resource:
Product
Release Notes
Hyperlink: https://github.com/unjs/unhead/security/advisories/GHSA-95h2-gj7x-gx9w
Source: security-advisories@github.com
Resource:
Exploit
Mitigation
Vendor Advisory
Hyperlink: https://github.com/unjs/unhead/security/advisories/GHSA-95h2-gj7x-gx9w
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Resource:
Exploit
Mitigation
Vendor Advisory
Change History
0Changes found

Details not found