{"id":"GHSA-x597-9fr4-5857","summary":"Hugo's Node tool execution allows file system access outside the project directory","details":"## 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/).","aliases":["CVE-2026-44301"],"modified":"2026-05-13T16:57:27.498723Z","published":"2026-05-06T20:59:23Z","database_specific":{"severity":"MODERATE","nvd_published_at":"2026-05-12T22:16:36Z","github_reviewed":true,"github_reviewed_at":"2026-05-06T20:59:23Z","cwe_ids":["CWE-22"]},"references":[{"type":"WEB","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-x597-9fr4-5857"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44301"},{"type":"PACKAGE","url":"https://github.com/gohugoio/hugo"}],"affected":[{"package":{"name":"github.com/gohugoio/hugo","ecosystem":"Go","purl":"pkg:golang/github.com/gohugoio/hugo"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.43.0"},{"fixed":"0.161.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-x597-9fr4-5857/GHSA-x597-9fr4-5857.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}