Skip to main content
← All vulnerabilities
CVE-2026-44301GO-2026-5740GHSA-X597-9FR4-5857

Hugo: Node tool execution allows file system access outside the project directory

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.161.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • gohugoio hugo

    From 0.43.0 · fixed in 0.161.0

  • github.com/gohugoio/hugoGo

    fixed in 0.161.0

  • github.com/gohugoio/hugoGo

    From 0.43.0 · fixed in 0.161.0

References 1

GitHub · gohugoio/hugo