NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

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

mediumCVSS 4.0 6.2GHSA-x597-9fr4-5857

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.

Published May 6, 2026 · Updated May 13, 2026

Affected packages

github.com/gohugoio/hugo

Ecosystem
Go
Affected
>= 0.43.0, < 0.161.0
Fixed in
0.161.0
Check
go list -m github.com/gohugoio/hugo

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to jmooring, banhcuon79, Gokul965.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries