Skip to main content

Hugo CVE-2026-109596

| EUVDEUVD-2026-98159 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-10-12 VulnCheck GHSA-38r7-h6rh-gjv9
6.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious Hugo theme/module
  2. Delivery
    Victim installs and runs build
  3. Exploit
    Symlink/junction at virtual ancestor resolves
  4. Execution
    resources.Match reads files outside root
  5. Impact
    Local files published to site output

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires the victim to install and build with an attacker-controlled Hugo theme or module (v0.162.0 through v0.166.x), and the attacker must place a symlink or NTFS junction at a virtual ancestor directory of a nested mount so that resources.Match follows it during a build. Limiting factors: this is local/build-time only (AV:L) and requires active user interaction (UI:A) - specifically the deliberate adoption and build of an untrusted third-party theme/module; it is not remotely triggerable against a running site, and impact is confined to disclosure of files readable by the build process on the build host.

Impact

This is a moderate, conditional risk rather than a top-priority emergency. The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/PR:N/UI:A/VC:H) is internally consistent with the description: exploitation is local and requires active user interaction (the victim must install an attacker-controlled theme/module and run a Hugo build), yielding high confidentiality impact but no integrity or availability impact. No EPSS score, no CISA KEV listing, and no public POC are present in the provided data, so there is no evidence of active or widespread exploitation - consistent with a supply-chain/trust-abuse flaw that depends on a developer voluntarily using a malicious theme. The key tension is between the PR:N rating (no authentication needed) and the real-world precondition that the attacker must first get their malicious theme/module adopted and built by the target; CVSS captures this via UI:A and AV:L rather than PR, which is technically correct but understates the social-engineering/supply-chain barrier. Net: a legitimate issue to patch in CI/build pipelines that consume third-party Hugo themes, but not an internet-facing, mass-exploitable vulnerability.

Exploit ScenarioDerived

An attacker publishes or compromises a Hugo theme/module and plants a symlink or NTFS junction at a virtual ancestor directory of a nested mount. A developer who adds that theme and runs a Hugo build (v0.162.0-0.166.x) triggers resources.Match, which follows the link and reads/publishes files from outside the theme root - potentially leaking secrets, credentials, or source from the build host into the generated site. No public exploit code is identified in the provided data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 12, 2026

Local file disclosure in Hugo v0.162.0 through v0.166.x allows an attacker-controlled theme or module to place a symlink or NTFS junction at a virtual ancestor directory of a nested mount, causing resources.Match to list and publish files outside the theme/module root during a site build. Affected users must install and build with an untrusted third-party theme or module; exploitation is local to the build host and requires user interaction, with impact limited to disclosure of files readable by the build process. No public exploit identified at time of analysis; vendor-released patch is v0.167.0.

RemediationAI

Upgrade to Hugo v0.167.0 or later; this is the vendor-released patch and resolves the improper link resolution (see advisory GHSA-6c8w-mpp8-9w47 at https://github.com/gohugoio/hugo/security/advisories/GHSA-6c8w-mpp8-9w47). If upgrading is not immediately possible, avoid building sites with untrusted third-party themes or modules, and audit all themes/modules for symlinks or NTFS junctions at nested-mount ancestor paths before building. As a compensating control, run builds in a sandbox or container with a read-only or minimal filesystem view so that the build process cannot read sensitive files outside the project directory; trade-offs include reduced build performance and potential breakage of legitimate themes that rely on filesystem access. Note that no vendor patch is available for versions before v0.167.0, and these mitigations do not fix the underlying path-resolution flaw.

Affected VersionsENISA

hugo 0.162.0 <0.167.0

Affected Packages

euvd hugo fix: 0.167.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Hugo is a Go-based static site generator that supports themes and modules via a virtual file system with mounts. CWE-59 (Improper Link Resolution Before File Access) arises here because Hugo's path resolution for nested mount ancestor directories did not properly constrain symlinks or NTFS junctions to the module root, allowing resources.Match to follow a link placed at a virtual ancestor and enumerate files outside that root during builds. The CPE cpe:2.3:a:gohugoio:hugo:*:*:*:*:*:*:*:* covers the affected v0.162.0 through v0.166.x range. The vulnerability is local/build-time only and requires the victim to adopt and build an attacker-controlled theme or module; it is not remotely triggerable against a running Hugo site, and the assessed impact is confidentiality-only (C:H/I:N/A:N) on the build host. No privileges are required (PR:N), but user interaction (UI:A) is required - the victim must deliberately install and build with an untrusted theme or module.

Know when Hugo gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.7 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.5 MEDIUM

Local build-time flaw requiring the victim to adopt and build a malicious theme (AV:L, UI:R); no privileges needed (PR:N); file disclosure gives C:H with no integrity or availability impact.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 13, 2026 - 02:16 EUVD
CVE Published
Oct 12, 2026 - 22:21 cve.org
MEDIUM 6.7

DescriptionCVE.org

Hugo from v0.162.0 before v0.167.0 contains an improper link resolution vulnerability that lets malicious themes or modules expose files outside their root via nested-mount ancestor directories. Attackers controlling a theme can place a symlink or NTFS junction at a virtual ancestor directory, causing resources.Match to list and publish local files during builds.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
Hugo is one of the most widely deployed static-site generators in developer build pipelines
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Hugo

View all
CVE-2020-26284 HIGH POC
8.5 Dec 21

Hugo is a fast and Flexible Static Site Generator built in Go. Rated high severity (CVSS 8.5), this vulnerability is rem

CVE-2026-89259 CRITICAL
9.3 Sep 11

Sandbox/permission-restriction bypass in the Hugo static site generator (versions after v0.43, fixed in v0.165.0) lets a

CVE-2026-75926 CRITICAL
9.3 Aug 18

Arbitrary command execution in Hugo 0.162.0 through 0.164.x occurs when the static site generator builds a project whose

CVE-2026-89258 CRITICAL
9.3 Sep 11

Arbitrary file disclosure in the Hugo static site generator (versions after v0.123.0 and before v0.165.0) lets an attack

CVE-2026-100692 HIGH
8.7 Sep 26

Symlink-following flaws in Hugo's theme and module mount confinement allow files outside a project's mount roots to be r

CVE-2026-100690 HIGH
8.7 Sep 26

Arbitrary file read in Hugo v0.161.0 through v0.165.0 allows an attacker who can contribute content to a Hugo project -

CVE-2026-100693 HIGH
8.6 Sep 26

Case-sensitivity bypass in Hugo's security.http.urls IP-literal deny rule lets builds running v0.162.0 through v0.165.x

CVE-2026-10582 HIGH
8.3 Aug 24

Server-side request forgery in Hugo static site generator (versions 0.91.0 through 0.165.0) allows an attacker who can s

CVE-2026-109595 MEDIUM
6.7 Oct 12

Path traversal in Hugo's asset pipeline lets a malicious theme or module bundle files from outside the project root into

CVE-2026-109574 MEDIUM
6.7 Oct 12

Path traversal in Hugo's css.Sass transpilation pipeline (all versions before v0.167.0) lets a malicious theme or module

CVE-2026-58403 MEDIUM
5.9 Jul 06

Symlink traversal in Hugo's virtual filesystem (v0.123.0-v0.163.0) allows a symlink planted inside a theme or local moun

CVE-2026-58402 MEDIUM
5.1 Jul 06

Stored XSS in Hugo's default code-block renderer allows an attacker with Markdown contribution rights to inject arbitrar

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy