CVE-2026-140395
Published:December 01, 2026
Updated:December 04, 2026
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 Packages
hugo (CONDA):
Affected version(s) >=0.122.0 <0.170.0Fix Suggestion:
Update to version 0.170.0https://github.com/gohugoio/hugo.git (GITHUB):
Affected version(s) >=v0.56.0 <v0.170.0Fix Suggestion:
Update to version v0.170.0github.com/gohugoio/hugo (GO):
Affected version(s) >=v0.56.0 <v0.170.0Fix Suggestion:
Update to version v0.170.0Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory
EPSS
Base Score:
0.78