Skip to main content

CVE-2026-109595: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gohugoio hugo

0
Medium
VulnerabilityCVE-2026-109595cvecve-2026-109595
Published: 10/12/2026 (10/12/2026, 22:21:50 UTC)
Source: CVE Database V5
Vendor/Project: gohugoio
Product: hugo

Description

Hugo versions from 0.84.0 up to but not including 0.167.0 contain a path traversal vulnerability. This flaw allows malicious themes or modules to read files outside the project root directory by exploiting ESBuild's fallback resolver in js.Build, js.Batch, and css.Build. Attackers can use relative imports or symbolic links pointing outside the project directory to include any file readable by the build user into the generated JavaScript or CSS output. The vulnerability has a medium severity rating with a CVSS 4.0 score of 6.7.

CVSS v4.0

Score 6.7medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

gohugoio

hugo

Affected versions
>=0.84.0 <0.167.0
github.com/gohugoio/hugo
pkg:golang/github.com/gohugoio/hugo
Affected versions
>=0.84.0 <0.167.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/12/2026, 23:49:26 UTC

Technical Analysis

CVE-2026-109595 is a path traversal vulnerability in the Hugo static site generator affecting versions >=0.84.0 and <0.167.0. The issue arises from improper limitation of pathnames in ESBuild's fallback resolver used in js.Build, js.Batch, and css.Build functions. Malicious themes or modules can exploit this to read arbitrary files outside the project root by shipping relative imports or symlinks that point outside the project directory. This allows bundling of any file readable by the build user into the published JavaScript or CSS output, potentially exposing sensitive information.

Potential Impact

An attacker who can supply malicious themes or modules to a Hugo build process can read arbitrary files outside the project directory that the build user has access to. This can lead to unintended disclosure of sensitive files through the published JavaScript or CSS output. There is no indication of remote code execution or privilege escalation. The vulnerability requires user interaction (UI:A) and local access to supply the malicious content. No known exploits in the wild have been reported.

Mitigation Recommendations

A fix is available in Hugo version 0.167.0 and later. Users should upgrade to version 0.167.0 or above to remediate this vulnerability. Until then, avoid using untrusted themes or modules that could exploit this path traversal issue. Patch status is confirmed by the affected version range indicating the vulnerability is fixed starting at 0.167.0.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-10-12T20:59:18.909Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6acd63de2cdf04f656e1e414

Added to database: 10/12/2026, 22:49:02 UTC

Last enriched: 10/12/2026, 23:49:26 UTC

Last updated: 10/13/2026, 01:48:20 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses