CVE-2026-140395 · gohugoio / hugo
CVE-2026-140395
Full advisory details, affected packages, severity context, and original source.
Affected technology
Affected versions and fixes
Version information comes from OSV, NVD, and the CVE vendor record. Each source may describe a different package, release branch, or platform.
gohugoio / hugo · semver
CVE vendor record- affected: From 0.56.0 (inclusive) · before 0.170.0 (exclusive) · semver
- unaffected: 0.170.0 · semver
Fixed releases / commits: Not explicitly provided by this source. Check the vendor guidance.
Other versions: unaffected according to the vendor record.
Advisory overview
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.
How Cevnitra tracks this
Cevnitra stores this NVD record in the public advisory mirror so scans and watchlists can match CVE-2026-140395 against your inventory.
