- Accueil
- Vulnérabilités
- CVE-2026-140394
CVE-2026-140394
Hugo 0.140.2 before 0.170.0 Stored XSS via highlight shortcode wrapperClass
Faible
31/100
Résumé
Hugo after 0.140.2 and before 0.170.0 contains a stored cross-site scripting vulnerability in the highlight shortcode and transform.Highlight template function, which write the wrapperClass option unescaped into the wrapping div's class attribute. Content authors can supply a wrapperClass value that closes the attribute and appends a script element, executing JavaScript in visitors' browsers under the site's origin.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
gohugoio (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| hugo | de 0.140.2 (inclus) à 0.170.0 (exclu) |
— | CNA (éditeur ou attributeur) |
Go (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| github.com/gohugoio/hugo | de 0.140.2 (inclus) à 0.170.0 (exclu) |
0.170.0 |
GitHub Advisory |
Correctif
Mise à jour — Go/github.com/gohugoio/hugo 0.170.0source officielle
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-4whp-jx7j-xvrm — Hugo highlight wrapperClass option allows stored cross-site scripting 1 déc. 2026
Références
- https://github.com/gohugoio/hugo/security/advisories/GHSA-4whp-jx7j-xvrmWEB
- https://www.vulncheck.com/advisories/hugo-0.140.2-before-0.170.0-stored-xss-via-highlight-shortcode-wrapperclassthird-party-advisory
- https://github.com/gohugoio/hugo/pull/15564WEB
- https://github.com/gohugoio/hugo/commit/bdde5aa5155c6c349a743e71dc846bef754b6773WEB
- https://github.com/gohugoio/hugoPACKAGE
- https://github.com/gohugoio/hugo/releases/tag/v0.170.0WEB
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- NVD
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N(CVSS 3.1, NVD)- Faiblesse
- CWE-79 · Script intersite (XSS)