CVE-2026-100690
Beschrijving NL
Hugo versies van v0.161.0 tot en met v0.165.0 draaien Node.js tools (css.PostCSS, css.TailwindCSS, js.Babel) onder het Node.js toestemmingsmodel om het lezen van het bestandssysteem naar de projectmap en geconfigureerde koppelingen te beperken. Omdat het machtigingsmodel Node.js alleen het lexicale pad valideert en symbolische links volgt die buiten de toegestane set vallen, heeft Hugo geen symlinks gedetecteerd die uit de sandbox ontsnappen. Een aanvaller die inhoud kan bijdragen aan een HUGO-project (bijvoorbeeld via een pull-verzoek) kan een symlink plaatsen zoals assets/css/x.css ->/etc/passwd samen met een PostCSS-plug-in die het leest, waardoor elk bestand dat door het HUGO-bouwproces kan worden gelezen, kan worden bekendgemaakt en mogelijk kan worden ingesloten in de gepubliceerde site. Dit heeft invloed op builds met behulp van de standaard beveiligingsconfiguratie; projecten die geen Node.js-tools aanroepen, worden niet beïnvloed. Opgelost in v0.166.0, die toegestane paden scant en de build faalt wanneer een symbolische link daarbuiten oplost.
Origineel (Engels) tonen
Hugo versions from v0.161.0 through v0.165.0 run Node.js tools (css.PostCSS, css.TailwindCSS, js.Babel) under the Node.js permission model to restrict file system reads to the project directory and configured mounts. Because the Node.js permission model validates only the lexical path and follows symbolic links that point outside the allowed set, Hugo did not detect symlinks escaping the sandbox. An attacker who can contribute content to a Hugo project (for example via a pull request) can commit a symlink such as assets/css/x.css -> /etc/passwd together with a PostCSS plugin that reads it, allowing any file readable by the Hugo build process to be disclosed and potentially embedded in the published site. This affects builds using the default security configuration; projects that do not invoke Node.js tools are unaffected. Fixed in v0.166.0, which scans allowed paths and fails the build when a symbolic link resolves outside them.