{"id":"ghsa-ghsa-r48v-r4vw-h9v8","seq":11911786,"kind":"advisory","title":"Hugo: Build-host file disclosure through path traversal in vendored module metadata","url":"https://github.com/advisories/GHSA-r48v-r4vw-h9v8","permalink":"https://vulnpulse.app/items/ghsa-ghsa-r48v-r4vw-h9v8","summary":"影響: go:github.com/gohugoio/hugo >= 0.56.0, < 0.170.0 → 0.170.0\nA theme or module can ship a _vendor/modules.txt with an import path containing .. segments. Hugo used this path as the module's root directory without checking that it stays inside _vendor, so a malicious theme can make Hugo treat any directory on the build host (up to /) as its module root and read files from it. Details collectModulesTXT in modules/collect.go builds the vendored module directory with filepath.Join(vendorDir, path), where path comes straight from _vendor/modules.txt. When an…","severity":"medium","cvss":null,"techs":["go","github"],"cves":[],"tags":["GHSA-r48v-r4vw-h9v8","github.com/gohugoio/hugo"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-12-01T02:23:54.000Z","fetched_at":"2026-12-01T02:40:51.310Z"}