GHSA-x597-9fr4-5857

Suggest an improvement
Source
https://github.com/advisories/GHSA-x597-9fr4-5857
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-x597-9fr4-5857/GHSA-x597-9fr4-5857.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x597-9fr4-5857
Aliases
  • CVE-2026-44301
Published
2026-05-06T20:59:23Z
Modified
2026-05-06T21:18:44.306673Z
Severity
  • 6.2 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Hugo's Node tool execution allows file system access outside the project directory
Details

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.

Database specific
{
    "nvd_published_at": null,
    "severity": "MODERATE",
    "github_reviewed_at": "2026-05-06T20:59:23Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "github_reviewed": true
}
References

Affected packages

Go / github.com/gohugoio/hugo

Package

Name
github.com/gohugoio/hugo
View open source insights on deps.dev
Purl
pkg:golang/github.com/gohugoio/hugo

Affected ranges

Type
SEMVER
Events
Introduced
0.43.0
Fixed
0.161.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-x597-9fr4-5857/GHSA-x597-9fr4-5857.json"