CVE-2026-44301 Details
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.
A vulnerability in Hugo, a static site generator, exists in versions 0.43 prior to 0.161.0. When building sites that utilize Node-based asset pipelines such as PostCSS, Babel, or TailwindCSS, Hugo executed the specified Node tools without proper restrictions on file system access. This lack of restriction could enable code processed by these tools to read or write files outside the project's working directory. The vulnerability does not affect users who build only trusted sites or those who do not use the mentioned asset pipelines.
Users can update to Hugo version 0.161.0 or later, where Node tools are executed under Node's permission model with strict defaults, allowing no write access and only read access to the site source directories and files. Alternatively, users can block PostCSS, Babel, and TailwindCSS in the security.exec.allow configuration.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gohugoio/hugo/security/advisories/GHSA-x597-9fr4-5857 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gohugo hugo | >= 0.43, < 0.161.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 21, 2026 | Initial Analysis | [email protected] |
| May 12, 2026 | New CVE Received | [email protected] |