freenode

← CVE tracker

CVE-2026-140395

Hugo 0.56.0 before 0.170.0 Path Traversal via _vendor/modules.txt

Severity
high CVSS 8.7 (v4.0)
Affects
hugo · gohugoio
Weakness
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
1 December 2026 by VulnCheck
Hugo 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.

Our coverage

We have not written about this one. Know why it matters? Send a tip.