github.com/gohugoio/hugo · Hugo theme-defined module replacements bypass mount restrictions and widen the Node.js read sandbox
Affects github.com/gohugoio/hugoSource GCVE Database
CVSS 6.7 Medium : upgrade to 0.168.0 when convenient.
Data as of 1 Dec 2026, 01:03 UTC
- Patch
- Available – fixed in 0.168.0
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NWhat to do
Upgrade github.com/gohugoio/hugo to 0.168.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/gohugoio/hugo | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to Hugo version 0.168.0 or later, where this vulnerability is fixed. Sites using untrusted themes or modules should avoid using them or verify their safety. No other specific mitigations are indicated by the vendor advisory.
Description
A vulnerability in Hugo versions from 0.152.0 up to but not including 0.168.0 allows a theme or module to bypass mount directory restrictions by defining its own module replacements. This enables mounting directories anywhere on the host filesystem, escaping the intended sandbox. Consequently, Node.js read permissions are widened, allowing Node tools such as css.PostCSS to read arbitrary files and load JavaScript modules from these directories. Only sites using untrusted themes or modules are affected. The issue is fixed in Hugo 0.168.0.
References
- github.com/gohugoio/hugo/security/advisories/GHSA-r73q-gwx2-fpxm (opens in a new tab)
- github.com/gohugoio/hugo/pull/15426 (opens in a new tab)
- github.com/gohugoio/hugo/commit/6883b55ad59e0daa1aaba0cf2b66db1132202e2c (opens in a new tab)
- github.com/gohugoio/hugo (opens in a new tab)
- github.com/gohugoio/hugo/releases/tag/v0.168.0 (opens in a new tab)