Skip to main content

CVE-2026-89259: Execution with Unnecessary Privileges in gohugoio hugo

0
Critical
VulnerabilityCVE-2026-89259cvecve-2026-89259
Published: 09/11/2026 (09/11/2026, 11:15:35 UTC)
Source: CVE Database V5
Vendor/Project: gohugoio
Product: hugo

Description

CVE-2026-89259 is a critical vulnerability in the Hugo static site generator affecting versions prior to 0.165.0. The issue arises because TailwindCSS, included in the default security.exec.allow list, requires highly permissive Node.js execution permissions, which can bypass intended security restrictions. This allows a Node tool invoked during a build to read and write files outside the project's working directory. The vulnerability was fixed in version 0.165.0 by removing TailwindCSS from the default allow list. Users not using TailwindCSS or only building trusted sites are not affected. A workaround is to define a restrictive security.exec.allow list in the hugo.toml configuration file.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

gohugoio

hugo

Affected versions
>=0 <0.165.0
GitHub Actionsmore threats →ai
gohugoio/hugo
pkg:github/gohugoio/hugo
Affected versions
>=0 <0.165.0

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

AILast updated: 09/11/2026, 11:46:50 UTC

Technical Analysis

Hugo versions from 0 up to but not including 0.165.0 execute Node tools under Node's permission model starting from v0.161.0. TailwindCSS, included by default in the security.exec.allow list, requires permissive flags (--allow-addons, --allow-child-process, --allow-worker), which can bypass the restrictions intended by a prior fix (GHSA-x597-9fr4-5857). This allows Node tools invoked during site builds to access files outside the project directory, violating intended sandboxing. The vulnerability is resolved in v0.165.0 by removing TailwindCSS from the default allow list. Users can mitigate by customizing the security.exec.allow list to be more restrictive in hugo.toml.

Potential Impact

An attacker able to influence the build process can exploit this vulnerability to read and write files outside the intended project directory, potentially leading to unauthorized file access or modification. This breaks the sandboxing model intended to limit Node tool permissions during builds. The impact is critical given the high CVSS 4.0 score of 9.3, indicating network exploitable, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

A fix is available in Hugo version 0.165.0, which removes TailwindCSS from the default security.exec.allow list. Users should upgrade to v0.165.0 or later. As a workaround, users can define a restrictive security.exec.allow list in the hugo.toml configuration file to exclude TailwindCSS or limit Node tool permissions. Users who do not use TailwindCSS or only build trusted sites are not affected and may not need to take action.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-09-11T10:52:56.668Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6aa3e6e291cc7f38481866ca

Added to database: 09/11/2026, 11:32:50 UTC

Last enriched: 09/11/2026, 11:46:50 UTC

Last updated: 09/11/2026, 17:15:46 UTC

Views: 30

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses