> CVE-2026-39315 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-04-09 18:17
MODIFIED
2026-04-09 18:17
CVSS_SCORE V3
6.1
EPSS (Prob. Exploit)
0.34%
Top 74.0%
DATA SOURCES:
NVD đź”— 2026-04-09 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-11-05

> DESCRIPTION

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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EXPLOITABILITY
2.8
IMPACT
2.7

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-184

> CWE DETAILED DESCRIPTIONS

CWE-184: Incomplete List of Disallowed Inputs - The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.

> GITHUB SECURITY ADVISORY

GHSA-95h2-gj7x-gx9w MODERATE

Unhead has a hasDangerousProtocol() bypass via leading-zero padded HTML entities in useHeadSafe()

AFFECTED PACKAGES:
NPM / unhead
< 2.1.13
Fixed in: 2.1.13

> HISTORIQUE DES MODIFICATIONS

Première apparition
09/04/2026 18:17
Source: NVD
📊 ENRICHISSEMENT 01/05/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-184: Incomplete List of Disallowed Inputs - The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise requ...
Total des modifications: 1 Dernière mise à jour: 6 months ago

> REFERENCES

https://github.com/unjs/unhead/commit/961ea781e091853812ffe17f8cda17105d2d2299
https://github.com/unjs/unhead/releases/tag/v2.1.13
https://github.com/unjs/unhead/security/advisories/GHSA-95h2-gj7x-gx9w
« BACK_TO_HOME