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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | hugo | no fix listed | DEBIAN-CVE-2026-44301 |
| Debian:13 | hugo | no fix listed | DEBIAN-CVE-2026-44301 |
| Debian:14 | hugo | 0.161.0-1 | DEBIAN-CVE-2026-44301 |
| Go | github.com/gohugoio/hugo | 0.161.0 | GHSA-x597-9fr4-5857 |
| Go | github.com/gohugoio/hugo | 0.161.0 | GO-2026-5740 |
| Ubuntu:22.04:LTS | hugo | no fix listed | UBUNTU-CVE-2026-44301 |
| Ubuntu:25.10 | hugo | no fix listed | UBUNTU-CVE-2026-44301 |
| Ubuntu:26.04:LTS | hugo | no fix listed | UBUNTU-CVE-2026-44301 |
| Ubuntu:26.10 | hugo | no fix listed | UBUNTU-CVE-2026-44301 |
Affected products (as reported)
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
- https://github.com/gohugoio/hugo/security/advisories/GHSA-x597-9fr4-5857 x_refsource_CONFIRM