Skip to main content
VulnerabilityPublished

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

0

CVSS 6.7 Medium : upgrade to 0.168.0 when convenient.

Data as of 1 Dec 2026, 01:03 UTC

CVSS 4.0 base score
6.7Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Upgrade github.com/gohugoio/hugo to 0.168.0.

Affected software

ProductAffectedFixed in
Gogithub.com/gohugoio/hugoAffected
  • >=0.152.0 <0.168.0
Fixed in
  • 0.168.0

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

Community reviews

Loading reviews…