Hugo from 0.56.0 before 0.170.0 contains a path traversal vulnerability that allows malicious themes or modules to…
7.5CVSS
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.
- Affected
- hugo 0.56.0 to before 0.170.0
- Fixed in
- 0.170.0
- CISA KEV
- no
- First seen
- 2026-12-02
- Categories
- All
- Sources
- NVD