Vulnerability · Published May 12, 2026 · Assigned by GitHub_M

CVE-2026-44301Hugo: Node tool execution allows file system access outside the project directory

Medium 6.2

In plain English

A medium-severity path traversal in hugo from gohugoio. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.2Medium
Exploit odds (30 days)0.3%top 80.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Hugo is a static site generator. From 0.43 to before 0.161.0, when building a Hugo site that uses Node-based asset pipelines (PostCSS, Babel, TailwindCSS), Hugo invoked the configured Node tools without restrictions on file system access. As a result, executing hugo against an untrusted site could allow code running through these tools to read or write files outside the project's working directory. Users who do not use PostCSS, Babel, or TailwindCSS, or who only build trusted sites, are not affected. This vulnerability is fixed in 0.161.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12hugono fix listedDEBIAN-CVE-2026-44301
Debian:13hugono fix listedDEBIAN-CVE-2026-44301
Debian:14hugo0.161.0-1DEBIAN-CVE-2026-44301
Gogithub.com/gohugoio/hugo0.161.0GHSA-x597-9fr4-5857
Gogithub.com/gohugoio/hugo0.161.0GO-2026-5740
Ubuntu:22.04:LTShugono fix listedUBUNTU-CVE-2026-44301
Ubuntu:25.10hugono fix listedUBUNTU-CVE-2026-44301
Ubuntu:26.04:LTShugono fix listedUBUNTU-CVE-2026-44301
Ubuntu:26.10hugono fix listedUBUNTU-CVE-2026-44301

Affected products (as reported)

VendorProductVersions
gohugoio hugo >= 0.43.0, < 0.161.0

Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U

References