Live threats

All CVEs / Gohugo

CVE-2026-44301Gohugo Hugo

Medium 6.2

Priority
37
CVSS 4.0
6.2
EPSS
—
Auth required
Yes
Published
May 12, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hugo.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/gohugoio/hugo ≥ 0.43.0 < 0.161.0 0.161.0 go get github.com/gohugoio/hugo@v0.161.0
Go github.com/gohugoio/hugo < 0.161.0 0.161.0 go get github.com/gohugoio/hugo@v0.161.0

Per OSV / GitHub Advisories (GHSA-x597-9fr4-5857, GO-2026-5740). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gohugohugo≥ 0.43 < 0.161.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.