1. Accueil
  2. Vulnérabilités
  3. CVE-2026-10618

CVE-2026-10618

Hugo's default fenced-code-block renderer writes attribute values taken from the code-fence info string into…

Publiée le 24 août 2026 · modifiée le 12 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 25/100

Résumé

Hugo's default fenced-code-block renderer writes attribute values taken from the code-fence info string into the rendered HTML without escaping them. New in markup/internal/attributes/attributes.go converts every attribute value from a byte slice to a string as it is stored, deliberately dropping the escaping that used to happen there, and RenderAttributes in the same file escapes only values that are still byte slices, so its escaping branch is never reached and every value is written verbatim. The function's documentation states that it performs HTML escaping of string attributes, which it does not. A quote inside an attribute value in the info string therefore terminates the attribute and allows a further attribute, including an event handler, to be placed on the wrapper element, and the script runs for every visitor who loads the page. This path is reached under the default configuration, with code fences enabled and without goldmark's unsafe setting or any custom render hook. Attribute names beginning with on are filtered when the attributes are parsed, so injection is achieved through the value rather than the name.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Gohugo (1 ligne(s))
Gohugo
ProduitVersionsCorrigé dansSource
Hugo de 0.93.0 (inclus) à 0.165.0 (exclu) — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
NVD
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (CVSS 3.1, CNA:disclosure@vulncheck.com)
Faiblesse
CWE-79 · Script intersite (XSS)

Comment sont obtenues et calculées ces données