Skip to main content

Hugo 0.170.0

Release Date: November 13, 2026

Hugo 0.170.0 was released on November 13, 2026, and it removes a distinction that has shaped the project's build documentation for years: the extended edition is gone. There is now one Hugo binary.

The change is the headline of a release that also carries three security fixes in the template and module layers, a round of performance work on static file syncing, and an update to the Go toolchain that ships with the binaries.

One binary, no extended edition

The extended edition existed because LibSass needed CGO, so a separate build was required to compile Sass. LibSass has been deprecated for a long time and Hugo has moved to Dart Sass, which runs as an external process. With the LibSass dependency removed, the extended build tag no longer buys anything.

Practically, that means several small breaks for anyone scripting around the old artifacts:

  • Setting transpiler to libsass inside css.Sass now returns an error. Dart Sass is the default and the only transpiler, so Dart Sass must be installed on the machine or in the container that builds the site.
  • hugo_extended_* archives are no longer published. As a courtesy, aliases remain for the most downloaded extended archive names, including hugo_extended_<version>_linux-amd64.tar.gz and the Windows zip, but build scripts should move to the standard archives.
  • extended_withdeploy builds are removed entirely.
  • hugo.IsExtended always returns false, and the hugoVersion.extended module setting is deprecated with no effect.

CI pipelines that pin an extended tarball will keep working through the aliases for now, but the alias set is explicitly described as a compatibility measure, not a permanent contract.

Security fixes

Passthrough content is now HTML escaped when no passthrough render hook is configured, unless markup.goldmark.renderer.unsafe is enabled. Before this release, content such as \(<img src=x onerror=alert(1)>\) in a Markdown file emitted raw HTML.

Two further issues were fixed in the same pass: the wrapperClass option, settable from the highlight shortcode and transform.Highlight, is now escaped, and vendored module paths are restricted to the _vendor directory so symlinks pointing outside it are rejected. Both were reported by an external researcher.

The binaries are built with Go 1.27.4, which carries 12 security fixes. The one that matters most for Hugo is a crash in the net/http HTTP/1 server, triggered by a race in MaxBytesReader, which affects hugo server. The rest are in the Go toolchain and mostly concern builds from source with untrusted dependencies.

Behavior changes that may surprise templates

  • Flags beat environment variables. Command line flags such as --buildDrafts now override HUGO_BUILDDRAFTS and friends. This also fixes the case where HUGO_ENVIRONMENT=qa hugo build -e staging loaded the staging config but reported qa in hugo.Environment.
  • Time zones survive. time.Time values keep their named zone, and eq, ne, in and uniq compare them by instant rather than by textual representation.
  • Resource matching keeps casing. resources.Match and related functions preserve directory casing, so patterns like gallery/Travel/Iceland/* work on case-sensitive file systems.
  • Truncate was rewritten. strings.Truncate now runs on a proper HTML scanner, handling comments, void elements, quoted attributes containing >, and raw text elements such as script. It is also faster and allocates less.

Performance and image handling

Static file syncing skips the content check for files whose size and modification time are unchanged, which makes repeated builds of large asset directories noticeably quicker. On the image side, the WebAssembly codecs received fixes: an AVIF encode crash at encoderSpeed 6 and lower is resolved, and the server now recovers from broken WASM instances instead of failing outright. WebP gained a larger stack size and WASM function names are preserved in the binaries.

Upgrading

Update through your package manager or the release archives. Sites that do not use Sass need nothing beyond the version bump. Sites that do use Sass must ensure Dart Sass is available in the build environment, since the embedded LibSass path no longer exists. Anyone with hugo.IsExtended in a template or a hugoVersion.extended constraint in a module config should remove it before the next major release.

Other Versions

We use cookies for ads and analytics.