8.7

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

Awaiting analysis
AliasesGHSA-r48v-r4vw-h9v8UBUNTU-CVE-2026-140395
Published 01-12-2026Last modified 02-12-2026

Vulnerability summary

CVE-2026-140395 is a high (CVSS 8.7) vulnerability in gohugoio hugo. EPSS estimates a 0.78% chance of exploitation in the next 30 days, higher than 57.4% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.78%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1

Timeline

  1. 01-12-2026
    PublishedVulnerability first disclosed.
  2. 02-12-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 3 sources · 2 versions

EPSS trend

Probability

0.78%

Chance of exploitation in the next 30 days

Percentile

57%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

02-12-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Github.com/gohugoio1 product
  • hugo≥ 0.56.0, < 0.170.0
Gohugoio1 product
  • hugo≥ 0.56.0, < 0.170.0
Ubuntu1 product
  • hugoAll versions (No fix recorded)

3 vendors · 3 products

References

8 links