CVE 6.2 MEDIUM

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

6.2 / 10
MEDIUM
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

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.

Basic Information

ID CVE-2026-44301
Source GitHub_M
Published May 12, 2026 at 21:37

Affected Product

Vendor gohugoio
Product hugo
Version >= 0.43.0, < 0.161.0
Affected Versions gohugoio hugo >= 0.43.0, < 0.161.0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.