CVE-2026-140395
HIGH 7.5
Summary
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.
Key facts
- Vendor: gohugoio
- CVSS 3.1: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N)
- EPSS (30-day exploitation probability): 0.78%
- Published: 2026-12-01
- Last modified: 2026-12-02
- Weakness: CWE-22
Data aggregated from NVD, CISA KEV, FIRST EPSS and OSV.dev. Updated 2026-12-02.
Get alerts and watchlists for vulnerabilities like this · Browse all vulnerabilities