## Hugo theme-defined module replacements bypass mount restrictions and widen the Node.js read sandbox

- 種別: advisory
- 重大度: medium
- 関連技術: go, github, nodejs
- 公開日時: 2026-11-30T21:49:32.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-r73q-gwx2-fpxm)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-r73q-gwx2-fpxm

影響: go:github.com/gohugoio/hugo >= 0.152.0, < 0.168.0 → 0.168.0
A theme or module could define its own module.replacements and mount directories anywhere on the host. Details A theme or module could define its own module.replacements. If the project didn't set any replacements, Hugo applied the theme's replacements as if the project had set them. The theme could then import and mount a directory anywhere on the host, either by absolute path or by escaping themesDir with ../. This got around the rule that theme mount sources must be local paths. Mounting suc…