CVE-2026-140395

NameCVE-2026-140395
DescriptionHugo from 0.56.0 before 0.170.0 contains a path traversal vulnerability that allows malicious themes or modules to read arbitrary build host files by supplying '..' segments in _vendor/modules.txt import paths. Attackers can make Hugo treat any directory as a module root and use readFile or static mounts to publish secrets, credentials, and system files in the generated site.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
hugosource(unstable)(not affected)

Notes

- hugo <not-affected> (Doesn't affect packaged Hugo)
https://github.com/gohugoio/hugo/security/advisories/GHSA-r48v-r4vw-h9v8

Search for package or bug name: Reporting problems