StraitOfVuln
Latest / CVE-2026-140395

CVE-2026-140395

HighCVSS 7.5 (v3.1)Awaiting Analysis
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-140395
Published / updated
01 Dec 2026, 15:18 UTC · last modified 02 Dec 2026, 20:20 UTC
Severity
HIGH
CVSS score
7.5 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N · Attack vector: Network
Affected vendor
gohugoio
Affected products
hugo
Affected versions
hugo: 0.56.0 to before 0.170.0
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
hugo 0.170.0
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.78% probability of exploitation in the next 30 days · 57% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
disclosure@vulncheck.com