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

Published May 6, 2026
·
Updated

Impact 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.

Patches From v0.161.0, Hugo runs Node tools under Node's permission model with strict defaults: No write access and only read access to the site source directories and files.

Workarounds Block these tools in security.exec.allow.

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/gohugoio/hugo>=0.43.0<0.161.0
0.161.0
gohugo Hugo>=0.43<0.161.0

Event History

May 6, 2026
Advisory Published
via GitHub·08:59 PM
Data Sourced
via GitHub·08:59 PM
DescriptionWeaknessAffected Software
May 12, 2026
CVE Published
via MITRE·09:37 PM
Data Sourced
via MITRE·09:37 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-44301?

CVE-2026-44301 has a medium severity rating due to its potential to allow unauthorized file system access.

2

How do I fix CVE-2026-44301?

To fix CVE-2026-44301, upgrade Hugo to version 0.161.0 or later.

3

What types of configurations are impacted by CVE-2026-44301?

CVE-2026-44301 affects Hugo sites that use Node-based asset pipelines like PostCSS, Babel, and TailwindCSS.

4

How can CVE-2026-44301 affect untrusted sites?

CVE-2026-44301 can allow malicious code from untrusted sites to read or write files on the file system.

5

Which versions of Hugo are vulnerable to CVE-2026-44301?

Hugo versions between 0.43.0 and 0.161.0 are vulnerable to CVE-2026-44301.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203