FlawAtlas
Search the atlas
CVE-2026-44301 Moderate

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. 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](https://gohugo.io/configuration/security/).

Exploit probability 0.3%
Published May 6, 2026
Required by Not available
Last source change July 24, 2026

02 / AFFECTED SOFTWARE

Affected packages

Unknown Unknown

281 explicit affected versions

Go github.com/gohugoio/hugo
Go github.com/gohugoio/hugo

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities GHSA-x597-9fr4-5857

## 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](https://gohugo.io/configuration/security/).

View original source
Open Source Vulnerabilities CVE-2026-44301

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.

View original source
Open Source Vulnerabilities GO-2026-5740

Hugo's Node tool execution allows file system access outside the project directory in github.com/gohugoio/hugo

View original source

05 / REFERENCES

Further evidence