CVE-2026-44301: Hugo's Node tool execution allows file system access outside the project directory
Impact 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.
Published May 6, 2026 · Updated May 13, 2026
Affected packages
github.com/gohugoio/hugo
- Ecosystem
- Go
- Affected
- >= 0.43.0, < 0.161.0
- Fixed in
- 0.161.0
- Check
go list -m github.com/gohugoio/hugo
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
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.
Patches
From 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.
Workarounds
Block these tools in security.exec.allow.
Credited to jmooring, banhcuon79, Gokul965.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-c3wq-j5vh-68rc
Hugo: Symlink confinement bypass in os.ReadFile
medium6.0Jun 19, 2026GHSA-q76j-gcg9-vxc6
Hugo: XSS via unescaped code-fence language in default code block renderer
medium5.1Jun 19, 2026GHSA-r46f-3rpw-hxrv
Hugo: security.http.urls deny rules bypassed by alternate IPv4 encodings (SSRF)
high7.7Jun 19, 2026CVE-2026-50133
Hugo: XSS via text/html content files
medium5.1Jun 16, 2026CVE-2026-50134
Hugo: security.http.urls allow-list bypass via HTTP redirects
mediumJun 16, 2026CVE-2026-50135
Hugo: Symlink confinement bypass in resources.Get
medium6.9Jun 16, 2026
