{"id":"CVE-2026-44301","aliases":["CVE-2026-44301","GHSA-x597-9fr4-5857","GO-2026-5740"],"related":[],"kind":"vulnerability","state":"published","title":"Hugo: Node tool execution allows file system access outside the project directory","summary":"Hugo is a static site generator. From 0.43 to before 0.161.0, when building a Hugo site that uses Node-based asset pipelines (PostCSS, Babel, TailwindCSS), Hugo invoked the configured Node tools without restrictions on file system access. As a result, executing hugo against an untrusted site could allow code running through these tools to read or write files outside the project's working directory. Users who do not use PostCSS, Babel, or TailwindCSS, or who only build trusted sites, are not affected. This vulnerability is fixed in 0.161.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Hugo is a static site generator. From 0.43 to before 0.161.0, when building a Hugo site that uses Node-based asset pipelines (PostCSS, Babel, TailwindCSS), Hugo invoked the configured Node tools without restrictions on file system access. As a result, executing hugo against an untrusted site could allow code running through these tools to read or write files outside the project's working directory. Users who do not use PostCSS, Babel, or TailwindCSS, or who only build trusted sites, are not affected. This vulnerability is fixed in 0.161.0.","source":"cvelist"},{"lang":"en","text":"## Impact \nWhen building a Hugo site that uses Node-based asset pipelines (PostCSS, Babel, TailwindCSS), Hugo invoked the configured Node tools without restrictions on file system access. As a result, executing hugo against an untrusted site could allow code running through these tools to read or write files outside the project's working directory.\n\nUsers who do not use PostCSS, Babel, or TailwindCSS, or who only build trusted sites, are not affected.\n\n## Patches\nFrom `v0.161.0`, Hugo runs Node tools under Node's permission model with strict defaults: No write access and only read access to the site source directories and files.\n\n## Workarounds\nBlock these tools in [security.exec.allow](https://gohugo.io/configuration/security/).","format":"markdown","source":"ghsa"},{"lang":"en","text":"Hugo's Node tool execution allows file system access outside the project directory in github.com/gohugoio/hugo","format":"markdown","source":"go"},{"lang":"es","text":"Hugo es un generador de sitios estáticos. Desde la versión 0.43 hasta antes de la 0.161.0, al construir un sitio Hugo que utiliza pipelines de activos basados en Node (PostCSS, Babel, TailwindCSS), Hugo invocaba las herramientas de Node configuradas sin restricciones de acceso al sistema de archivos. Como resultado, ejecutar hugo contra un sitio no confiable podría permitir que el código que se ejecuta a través de estas herramientas lea o escriba archivos fuera del directorio de trabajo del proyecto. Los usuarios que no utilizan PostCSS, Babel o TailwindCSS, o que solo construyen sitios confiables, no se ven afectados. Esta vulnerabilidad está corregida en la versión 0.161.0.","source":"nvd"}],"published":"2026-05-06T20:59:23.000Z","modified":"2026-10-26T14:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","score":6.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 0.43.0, < 0.161.0","status":"affected"}],"vendor":"gohugoio","product":"hugo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.43.0","status":"affected","fixed":"0.161.0"}],"ecosystem":"Go","package":"github.com/gohugoio/hugo","purl":"pkg:golang/github.com/gohugoio/hugo","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.161.0"}],"ecosystem":"Go","package":"github.com/gohugoio/hugo","purl":"pkg:golang/github.com/gohugoio/hugo","source":"go"},{"ranges":[{"status":"affected","introduced":"0.43","fixed":"0.161.0"}],"vendor":"gohugo","product":"hugo","cpe":"cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-x597-9fr4-5857","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44301","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/gohugoio/hugo","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/gohugoio/hugo/commit/a54c398b93821865547a9e21c73aad8a1d7f7bc1","tags":["fix"],"sources":["go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-13T12:12:51.322Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44301","url":"https://www.cve.org/CVERecord?id=CVE-2026-44301","licence":"CVE Terms of Use","modified":"2026-05-13T12:13:13.152Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x597-9fr4-5857","url":"https://github.com/advisories/GHSA-x597-9fr4-5857","licence":"CC-BY-4.0","modified":"2026-07-24T19:11:22.334Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5740","url":"https://pkg.go.dev/vuln/GO-2026-5740","licence":"CC-BY-4.0","modified":"2026-07-24T19:00:25.653Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44301","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44301","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:21.511Z","epss":{"score":0.00274,"percentile":0.2115,"date":"2026-12-01T12:00:22.000Z"}}