CVE-2026-75926

Hugo 0.161.0 placed the Node asset pipelines behind the Node.js permission model so that code running through PostCSS, Babel, or TailwindCSS could not reach the file system outside the project directory. Hugo 0.162.0 added tailwindcss to the AllowChildProcess default in config/security/securityConfig.go, which makes nodePermissionArgs in common/hexec/exec.go append --allow-child-process whenever the tool being launched is named tailwindcss. TailwindCSS loads the site's tailwind.config.js through require at startup, so top-level code in that file executes inside the permitted Node process and can call child_process to spawn a shell. The spawned process is not a Node process and inherits none of the permission flags, so it runs with the full privileges of the account performing the build. Building a site whose theme, module, or starter template supplies the Tailwind configuration therefore yields arbitrary command execution rather than the confined file access the permission model was introduced to enforce. Hugo 0.165.0 removes tailwindcss from the default security.exec.allow list, so the tool is no longer launched under the default configuration.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*

History

22 Oct 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) Hugo 0.161.0 colocó las tuberías de activos de Node detrás del modelo de permisos de Node.js para que el código que se ejecuta a través de PostCSS, Babel o TailwindCSS no pudiera acceder al sistema de archivos fuera del directorio del proyecto. Hugo 0.162.0 añadió tailwindcss al valor predeterminado de AllowChildProcess en config/security/securityConfig.go, lo que hace que nodePermissionArgs en common/hexec/exec.go añada --allow-child-process cada vez que la herramienta que se lanza se llama tailwindcss. TailwindCSS carga el archivo tailwind.config.js del sitio a través de require al inicio, por lo que el código de nivel superior en ese archivo se ejecuta dentro del proceso Node permitido y puede llamar a child_process para generar un shell. El proceso generado no es un proceso Node y no hereda ninguna de las banderas de permiso, por lo que se ejecuta con todos los privilegios de la cuenta que realiza la compilación. La compilación de un sitio cuyo tema, módulo o plantilla de inicio proporciona la configuración de Tailwind, por lo tanto, produce la ejecución arbitraria de comandos en lugar del acceso confinado a archivos que el modelo de permisos fue introducido para hacer cumplir. Hugo 0.165.0 elimina tailwindcss de la lista predeterminada security.exec.allow, por lo que la herramienta ya no se lanza bajo la configuración predeterminada.

29 Sep 2026, 21:03

Type Values Removed Values Added
CPE cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*
First Time Gohugo
Gohugo hugo
References () https://github.com/gohugoio/hugo - () https://github.com/gohugoio/hugo - Product
References () https://github.com/gohugoio/hugo/blob/v0.164.0/common/hexec/exec.go#L292-L295 - () https://github.com/gohugoio/hugo/blob/v0.164.0/common/hexec/exec.go#L292-L295 - Product
References () https://github.com/gohugoio/hugo/blob/v0.164.0/config/security/securityConfig.go#L72-L79 - () https://github.com/gohugoio/hugo/blob/v0.164.0/config/security/securityConfig.go#L72-L79 - Product
References () https://github.com/gohugoio/hugo/commit/8a55df7af2e6da31297245cc54fa2e3b521d93e8 - () https://github.com/gohugoio/hugo/commit/8a55df7af2e6da31297245cc54fa2e3b521d93e8 - Patch
References () https://github.com/gohugoio/hugo/issues/15178 - () https://github.com/gohugoio/hugo/issues/15178 - Issue Tracking, Patch, Vendor Advisory
References () https://www.vulncheck.com/advisories/hugo-to-x-node-permission-model-bypass-via-default-tailwindcss-child-process-grant - () https://www.vulncheck.com/advisories/hugo-to-x-node-permission-model-bypass-via-default-tailwindcss-child-process-grant - Exploit, Patch, Third Party Advisory

Information

Published : 2026-08-18 16:18

Updated : 2026-10-22 22:10


NVD link : CVE-2026-75926

Mitre link : CVE-2026-75926

CVE.ORG link : CVE-2026-75926


JSON object : View

Products Affected

gohugo

  • hugo
CWE
CWE-1188

Initialization of a Resource with an Insecure Default