JLSEC-2026-793
8.1high
Hugo's Node tool execution allows file system access outside the project directory
- Severity
- 8.1high CVSS:3.1 by Julia Security Advisories
- Published
- Last changed
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Hugo_jll (Julia) | before 0.163.3+0 | Julia Security Advisories |
All scores
| Julia Security Advisories | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| Julia Security Advisories | Not scored CVSS:4.0 | 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 |
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| Julia Security Advisories | JLSEC-2026-793 changed 2026-07-25 | CC-BY-4.0 |