← 漏洞与更新

中危漏洞公告GoGitHubJavaScript / Node.js

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

受影响

软件包受影响版本修复版本
go:github.com/gohugoio/hugo>= 0.152.0, < 0.168.00.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…

在 GitHub Advisory Database 阅读

2026/12/01 06:49,GitHub Advisory Database 发布了“Hugo theme-defined module replacements bypass mount restrictions and widen the Node.js read sandbox”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:Go、GitHub、JavaScript / Node.js。