CVE-2026-109595 PUBLISHED

Hugo v0.84.0 before v0.167.0 Path Traversal via js.Build ESBuild Resolver

Assigner: VulnCheck
Reserved: 12.10.2026 Published: 12.10.2026 Updated: 12.10.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 6.7

Product Status

Vendor gohugoio
Product hugo
Versions Default: unaffected
  • affected from 0.84.0 to 0.167.0 (excl.)
  • Version 0.167.0 is unaffected

Credits

  • Hama1cco finder

References

Problem Types

  • Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE