# CVE-2026-140395: Hugo 0.56.0 before 0.170.0 Path Traversal via \_vendor/modules.txt

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0.170.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-12-01 · Modified: 2026-12-02
- Aliases: GHSA-r48v-r4vw-h9v8, UBUNTU-CVE-2026-140395
- Record: https://cvemate.com/vulnerability/CVE-2026-140395 · JSON: https://cvemate.com/vulnerability/CVE-2026-140395/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.785%, percentile 57.417%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu hugo (Ubuntu): All versions (No fix recorded)
- gohugoio hugo: ≥ 0.56.0, \< 0.170.0
- github.com/gohugoio hugo (Go): ≥ 0.56.0, \< 0.170.0

## References

- <https://github.com/gohugoio/hugo/security/advisories/GHSA-r48v-r4vw-h9v8>
- <https://www.vulncheck.com/advisories/hugo-0.56.0-before-0.170.0-path-traversal-via-vendor-modules-txt>
- <https://github.com/gohugoio/hugo/pull/15564>
- <https://github.com/gohugoio/hugo/commit/d41a8a196e6b2fd5e5aa886c790d6c679dd73be0>
- <https://github.com/gohugoio/hugo>
- <https://github.com/gohugoio/hugo/releases/tag/v0.170.0>
- <https://ubuntu.com/security/CVE-2026-140395>
- <https://www.cve.org/CVERecord?id=CVE-2026-140395>

---

Data as of 2026-12-05T10:13:01.906Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
