Live threats

All CVEs / gohugoio

CVE-2026-89259gohugoio hugo

Insufficient Permission Restriction in Hugo via TailwindCSS

Critical 9.3 No auth needed

Priority
71
CVSS 4.0
9.3
EPSS
—
Auth required
No
Published
Sep 11, 2026
Updated
Sep 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-250
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
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/E:X/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

What happens

Hugo from v0.161.0 executes Node tools under Node's permission model, but TailwindCSS in the default security allow list requires highly permissive configuration that bypasses file access restrictions. An attacker can read and write files outside the project directory during build if TailwindCSS is used. The issue was fixed in v0.165.0 by removing TailwindCSS from the default allow list.

Show the original NVD text

Hugo is a static site generator. From v0.161.0, Hugo executes Node tools under Node's permission model, but TailwindCSS — included in the default security.exec.allow list — requires a highly permissive configuration (--allow-addons, --allow-child-process, --allow-worker). As a result, the restrictions intended by the fix for GHSA-x597-9fr4-5857 could still be bypassed, allowing a Node tool invoked during a build to read and write files outside the project's working directory. Affected versions are those after v0.43; the issue was fixed in v0.165.0 by removing tailwindcss from the default security.exec.allow list. Users who do not use TailwindCSS, or who only build trusted sites, are not affected. As a workaround, users can define a restrictive security.exec.allow list in hugo.toml.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 0.165.0

Update Hugo to v0.165.0 or later. If you cannot update, define a restrictive security.exec.allow list in hugo.toml.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for hugo.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.