CVE-2026-75926: Initialization of a Resource with an Insecure Default in gohugoio hugo
A critical vulnerability (CVE-2026-75926) in Hugo versions 0.162.0 through before 0.165.0 allows arbitrary command execution via TailwindCSS configuration. This occurs because TailwindCSS is launched with permissions that allow spawning child processes without restrictions, bypassing the intended Node.js permission model. The issue was introduced in version 0.162.0 and mitigated in 0.165.0 by removing TailwindCSS from the default allowed child process list.
AI Analysis
Technical Summary
Hugo 0.161.0 implemented a Node.js permission model to restrict asset pipeline tools like PostCSS, Babel, and TailwindCSS from accessing the file system outside the project directory. However, in version 0.162.0, TailwindCSS was added to the AllowChildProcess default list, causing the tool to be launched with the --allow-child-process flag. TailwindCSS loads the site's tailwind.config.js at startup, executing top-level code inside the permitted Node process. This code can spawn child processes via child_process, which run without Node.js permission restrictions and inherit full user privileges. Consequently, building a site with a malicious Tailwind configuration can lead to arbitrary command execution. This vulnerability was addressed in Hugo 0.165.0 by removing TailwindCSS from the default allow list, restoring the intended security model.
Potential Impact
An attacker who can supply or modify the TailwindCSS configuration file (tailwind.config.js) in a Hugo project can execute arbitrary commands with the privileges of the user running the Hugo build process. This bypasses the Node.js permission model intended to confine file system access, potentially leading to full system compromise during site builds. The vulnerability affects local builds and any environment where the vulnerable Hugo versions are used to build sites with TailwindCSS configurations.
Mitigation Recommendations
Hugo 0.165.0 removes TailwindCSS from the default security.exec.allow list, preventing it from being launched with the --allow-child-process flag under default configurations. Users should upgrade to version 0.165.0 or later to mitigate this vulnerability. Until upgrading, avoid building sites with untrusted TailwindCSS configurations or modify the security configuration to disallow child processes for TailwindCSS. Patch status is not explicitly stated but the removal of TailwindCSS from the allow list in 0.165.0 constitutes an official fix.
CVE-2026-75926: Initialization of a Resource with an Insecure Default in gohugoio hugo
Description
A critical vulnerability (CVE-2026-75926) in Hugo versions 0.162.0 through before 0.165.0 allows arbitrary command execution via TailwindCSS configuration. This occurs because TailwindCSS is launched with permissions that allow spawning child processes without restrictions, bypassing the intended Node.js permission model. The issue was introduced in version 0.162.0 and mitigated in 0.165.0 by removing TailwindCSS from the default allowed child process list.
CVSS v4.0
Score 9.3critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Hugo 0.161.0 implemented a Node.js permission model to restrict asset pipeline tools like PostCSS, Babel, and TailwindCSS from accessing the file system outside the project directory. However, in version 0.162.0, TailwindCSS was added to the AllowChildProcess default list, causing the tool to be launched with the --allow-child-process flag. TailwindCSS loads the site's tailwind.config.js at startup, executing top-level code inside the permitted Node process. This code can spawn child processes via child_process, which run without Node.js permission restrictions and inherit full user privileges. Consequently, building a site with a malicious Tailwind configuration can lead to arbitrary command execution. This vulnerability was addressed in Hugo 0.165.0 by removing TailwindCSS from the default allow list, restoring the intended security model.
Potential Impact
An attacker who can supply or modify the TailwindCSS configuration file (tailwind.config.js) in a Hugo project can execute arbitrary commands with the privileges of the user running the Hugo build process. This bypasses the Node.js permission model intended to confine file system access, potentially leading to full system compromise during site builds. The vulnerability affects local builds and any environment where the vulnerable Hugo versions are used to build sites with TailwindCSS configurations.
Mitigation Recommendations
Hugo 0.165.0 removes TailwindCSS from the default security.exec.allow list, preventing it from being launched with the --allow-child-process flag under default configurations. Users should upgrade to version 0.165.0 or later to mitigate this vulnerability. Until upgrading, avoid building sites with untrusted TailwindCSS configurations or modify the security configuration to disallow child processes for TailwindCSS. Patch status is not explicitly stated but the removal of TailwindCSS from the allow list in 0.165.0 constitutes an official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-18T15:36:16.466Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8482f3c6e8be03326f9af8
Added to database: 08/18/2026, 16:06:11 UTC
Last enriched: 08/18/2026, 16:19:28 UTC
Last updated: 08/18/2026, 16:20:22 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.