Skip to content

Remove tailwindcss from the default security.exec.allow listΒ #15178

Closed

Description

@bep

We enabled Node.js permission model in Hugo v0.161.0. This hardened the security for most of the JS tools that we support (e.g. PostCSS). Unfortunately, TailwindCSS needs a very permissive setup to run. Our runtime security model calls for pragmatic, but strict defaults. With that in mind, we need to remove tailwindcss from the default allow list.

Note that you can easily re-add this to your hugo.toml, e.g:

  [security.exec]
    allow = ['^((dart-)?sass|go|npx|babel|node|git|postcss|tailwindcss)$']

Note that TailwindCSS is perfectly safe to use if you own/trust your theme to now do harmful things.

Activity

  1. added this to the v0.165.0 milestone on Aug 9, 2026
  2. added a commit that references this issue on Aug 10, 2026
    281b912
  3. added a commit that references this issue on Aug 10, 2026
    8a55df7
  4. added 2 commits that reference this issue on Aug 24, 2026
  5. github-actions commented on Sep 2, 2026

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions