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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Tue, 01 Dec 2026 14:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Hugo 0.56.0 before 0.170.0 Path Traversal via _vendor/modules.txt | |
| First Time appeared |
Gohugo
Gohugo hugo |
|
| Weaknesses | CWE-22 | |
| CPEs | cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Gohugo
Gohugo hugo |
|
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-12-01T14:29:10.962Z
Reserved: 2026-12-01T03:08:13.473Z
Link: CVE-2026-140395
No data.
Status : Awaiting Analysis
Published: 2026-12-01T15:18:04.800
Modified: 2026-12-01T15:18:05.003
Link: CVE-2026-140395
No data.
OpenCVE Enrichment
No data.
Weaknesses