Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious Hugo theme/module/starter
-
DeliveryVictim adds it and runs a build
-
ExploitTailwindCSS requires tailwind.config.js at startup
-
ExecutionTop-level code calls child_process to spawn shell
-
PersistShell escapes Node permission sandbox
-
ImpactArbitrary commands run as build account
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V13 - Configuration Secure default settings
|
| Exploitation Conditions | Exploitation requires all of the following: a vulnerable Hugo build (0.162.0 through 0.164.x) running the TailwindCSS asset pipeline under the default security.exec configuration; a tailwind.config.js whose contents are controlled by the attacker via a theme, Hugo module, or starter template that the victim incorporates; and the victim actually running a site build (the UI:P / build-operator action) which causes TailwindCSS to require the config at startup. Limiting factors: the attack is local/build-time only (AV:L), not remotely triggerable; it does not fire unless the Tailwind pipeline is used and the config comes from an untrusted source; and it is not exploitable on Hugo 0.165.0+ or on configurations that have removed tailwindcss from the exec allow list. If your Tailwind config is entirely first-party and reviewed, the practical exposure is minimal despite the vulnerable version. |
| Impact | This is a genuine high-impact issue but not a mass-exploitation, internet-facing one, and the signals should be weighed accordingly. The vendor CVSS 4.0 base score is 9.3 with vector AV:L/AC:L/AT:N/PR:N/UI:P and full high impact on both the vulnerable and subsequent systems (VC/VI/VA and SC/SI/SA all High), reflecting that a successful attack fully compromises the build host by escaping the Node sandbox. The attack vector is Local and requires passive user interaction (UI:P) - a developer or CI system must actually build a site using the Tailwind pipeline and an untrusted config source - which meaningfully limits opportunistic exploitation compared to a remote unauthenticated bug. No EPSS score, no CISA KEV listing, and no public proof-of-concept were provided, so there is no evidence of active exploitation; the finding originates from VulnCheck research. The practical risk concentrates in developer workstations and CI/CD pipelines that pull third-party Hugo themes, modules, or starter templates, so any organization building Hugo sites from untrusted sources on a vulnerable version should treat this as an urgent patch-or-mitigate item even though the raw CVSS looks like a remote-critical. |
| Exploit ScenarioDerived | An attacker publishes an attractive Hugo theme, module, or starter template that includes a tailwind.config.js containing top-level JavaScript which calls child_process to run a shell command. A developer or CI pipeline adds the theme and runs 'hugo' to build the site on a vulnerable version (0.162.0-0.164.x) with the Tailwind pipeline enabled; the config executes and runs arbitrary commands as the build user. No public exploit code was identified, but the technique is straightforward and requires only that the victim build the project. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Arbitrary command execution in Hugo 0.162.0 through 0.164.x occurs when the static site generator builds a project whose Tailwind configuration is supplied by an attacker-controlled theme, module, or starter template. Because these releases added tailwindcss to the AllowChildProcess default, Hugo launches the tool with --allow-child-process, and any top-level JavaScript in tailwind.config.js (loaded via require at startup) can spawn a non-Node shell that inherits none of the Node.js permission restrictions and runs with the full privileges of the build account. This is a build-time supply-chain execution flaw with no public exploit identified at time of analysis; it was reported by VulnCheck and fixed in Hugo 0.165.0.
RemediationAI
Vendor-released patch: upgrade to Hugo 0.165.0 or later, which removes tailwindcss from the default security.exec.allow list per commit https://github.com/gohugoio/hugo/commit/8a55df7af2e6da31297245cc54fa2e3b521d93e8 so the tool is no longer auto-launched with child-process permission. If you cannot upgrade immediately, override the default security configuration to exclude tailwindcss from security.exec.allow (and from security.node.permissions.allowChildProcess), which disables the vulnerable auto-grant at the cost of breaking the built-in Tailwind pipeline until you upgrade. As a complementary control, only build sites from themes, modules, and starter templates you trust and audit any third-party tailwind.config.js for top-level require/child_process calls before building; running builds in an isolated, least-privilege container or CI runner limits blast radius if a malicious config executes. Refer to the VulnCheck advisory and issue #15178 for specifics.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Hugo (cpe:2.3:a:gohugoio:hugo) is a widely used Go-based static site generator. In 0.161.0 it wrapped its Node asset pipelines (PostCSS, Babel, TailwindCSS) in the Node.js permission model so that these tools could only read within the project directory. The regression is an insecure default (CWE-1188, Initialization of a Resource with an Insecure Default): 0.162.0 added 'tailwindcss' to the AllowChildProcess allow list in config/security/securityConfig.go, and nodePermissionArgs in common/hexec/exec.go therefore appends --allow-child-process whenever the launched tool is named tailwindcss. TailwindCSS itself loads the site's tailwind.config.js via require during startup, so top-level code in that file executes inside the permission-granted Node process. Because --allow-child-process was granted, that code can call Node's child_process API to spawn a shell - and the spawned process is not a Node process, so it inherits none of the --allow-read/--allow-write confinement, defeating the very boundary the permission model was meant to enforce.
Know when Hugo gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Local build-time execution needs the victim to run a build (UI:R) but no attacker privileges since the config is attacker-supplied (PR:N); escaping the Node permission sandbox to the host account is a scope change (S:C) with full host compromise.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Hugo 0.161.0 placed the Node asset pipelines behind the Node.js permission model so that code running through PostCSS, Babel, or TailwindCSS could not reach the file system outside the project directory. Hugo 0.162.0 added tailwindcss to the AllowChildProcess default in config/security/securityConfig.go, which makes nodePermissionArgs in common/hexec/exec.go append --allow-child-process whenever the tool being launched is named tailwindcss. TailwindCSS loads the site's tailwind.config.js through require at startup, so top-level code in that file executes inside the permitted Node process and can call child_process to spawn a shell. The spawned process is not a Node process and inherits none of the permission flags, so it runs with the full privileges of the account performing the build. Building a site whose theme, module, or starter template supplies the Tailwind configuration therefore yields arbitrary command execution rather than the confined file access the permission model was introduced to enforce. Hugo 0.165.0 removes tailwindcss from the default security.exec.allow list, so the tool is no longer launched under the default configuration.
Articles & Coverage 2
Executive ViewAI
Hugo static site generator versions 0.162.0 through 0.164.x contain a critical arbitrary command execution vulnerability triggered during site builds when projects use attacker-controlled themes, modules, or starter templates. This supply-chain attack vector executes with full build account privileges, potentially compromising CI/CD pipelines and build infrastructure for organizations deploying these affected versions.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Hugo is a fast and Flexible Static Site Generator built in Go. Rated high severity (CVSS 8.5), this vulnerability is rem
Sandbox/permission-restriction bypass in the Hugo static site generator (versions after v0.43, fixed in v0.165.0) lets a
Arbitrary file disclosure in the Hugo static site generator (versions after v0.123.0 and before v0.165.0) lets an attack
Symlink-following flaws in Hugo's theme and module mount confinement allow files outside a project's mount roots to be r
Arbitrary file read in Hugo v0.161.0 through v0.165.0 allows an attacker who can contribute content to a Hugo project -
Case-sensitivity bypass in Hugo's security.http.urls IP-literal deny rule lets builds running v0.162.0 through v0.165.x
Server-side request forgery in Hugo static site generator (versions 0.91.0 through 0.165.0) allows an attacker who can s
Local file disclosure in Hugo v0.162.0 through v0.166.x allows an attacker-controlled theme or module to place a symlink
Path traversal in Hugo's asset pipeline lets a malicious theme or module bundle files from outside the project root into
Path traversal in Hugo's css.Sass transpilation pipeline (all versions before v0.167.0) lets a malicious theme or module
Symlink traversal in Hugo's virtual filesystem (v0.123.0-v0.163.0) allows a symlink planted inside a theme or local moun
Stored XSS in Hugo's default code-block renderer allows an attacker with Markdown contribution rights to inject arbitrar
EUVD-2026-61008
GHSA-pxpg-7gfv-6wc9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB