CVE-2026-140395

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.
Configurations

No configuration.

History

01 Dec 2026, 15:18

Type Values Removed Values Added
New CVE

Information

Published : 2026-12-01 15:18

Updated : 2026-12-02 20:20


NVD link : CVE-2026-140395

Mitre link : CVE-2026-140395

CVE.ORG link : CVE-2026-140395


JSON object : View

Products Affected

No product.

CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')