Hugo path traversal in js.Build ESBuild resolver exposes files outside project
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 1 fixed, 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
Hugo from v0.84.0 before v0.167.0 contains a path traversal vulnerability (CWE-22) in the ESBuild fallback resolver used by js.Build, js.Batch, and css.Build. Malicious themes or modules can ship relative imports or symlinks that point outside the project root, so a build can bundle any file readable by the build user into published JavaScript or CSS output. The CVSS 4.0 base score is 6.7 (MEDIUM).
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
Hugo from v0.84.0 before v0.167.0 contains a path traversal vulnerability that allows malicious themes or modules to read files outside the project root via ESBuild's fallback resolver in js.Build, js.Batch, and css.Build. Attackers can ship relative imports or symlinks pointing outside the project to bundle any file readable by the build user into published JavaScript or CSS output.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade Hugo to v0.167.0. Red Hat Hardened Images are fixed by RHSA-2026:80677, while Red Hat Enterprise Linux 10, Red Hat OpenShift GitOps, and Red Hat OpenStack Platform 18.0 have no fix available yet.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA hugo (gohugoio) Fixed in 0.167.0
Red Hat 1 advisory
- RHSA-2026:80677 Released 2026-10-12 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images hugo-0.167.0-0.2.hum1@aarch64, hugo-0.167.0-0.2.hum1@s390x, hugo-0.167.0-0.2.hum1@src +1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
gohugoio hugo 0.167.0
4 records Highest priority Priority LOW 4 LOW
Other records, highest priority first
- TI-2026-71361 Symlink following in Hugo exposes files outside theme rootPriority LOW 29
- TI-2026-71359 Path traversal in Hugo css.Sass exposes files outside project rootPriority LOW 29
- TI-2026-71362 Stored cross-site scripting in Hugo via table of contents heading IDsPriority LOW 22
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift GitOps | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 18.0 | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Fixed | RHSA-2026:80677 |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-13 Threatist record created from CVE-2026-109595
- 2026-10-13 Alias added: GHSA-6cfm-3xc5-q3r5
- 2026-10-13 Priority changed: MEDIUM → LOW
- 2026-10-16 CISA SSVC decision points changed
- 2026-10-20 Fix available: RHSA-2026:80677 · Red Hat
- 2026-10-20 Fix available: Red Hat Hardened Images · Red Hat
- 2026-10-20 CVSS score added · Red Hat
References
More gohugoio vulnerabilities
- TI-2026-60433 Hugo before v0.165.0 Insufficient Permission Restriction via TailwindCSS CVSS 4.0CRITICAL 9.3
- TI-2026-60432 Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get CVSS 4.0CRITICAL 9.3
- TI-2026-64848 Hugo before v0.166.0 Path Traversal via Symlinked Mount Roots CVSS 4.0HIGH 8.7
- TI-2026-64846 Hugo v0.161.0 to v0.165.0 Arbitrary File Read via Symlinks CVSS 4.0HIGH 8.7
- TI-2026-53153 Hugo 0.162.0 to 0.164.x - Node Permission Model Bypass via Default TailwindCSS Child-Process Grant CVSS 4.0CRITICAL 9.3
- TI-2020-16105 Hugo can execute a binary from the current directory on Windows CVSS 3.1HIGH 8.5
Sources
- CVE-2026-109595 · CVE Program
- CVE-2026-109595 · NVD
- FIRST EPSS
- GHSA-6cfm-3xc5-q3r5 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-109595 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences