Hugo v0.169.0 Ships Go 1.27.3 Build, Template Security Hardening and .Params Deprecation

Hugo·27 Oct 2026·2 min read

#hugo

Hugo v0.169.0 is out, and its primary motivation is shipping a binary built with Go 1.27.3, which blocks trust in a small set of intermediate certificates over specific security concerns about their operation (see the eMudhra incident). This directly affects any Hugo feature that fetches remote resources over HTTPS, most notably resources.GetRemote. On top of the compiler bump, the release adds security hardening for template functions and menus that can render content as HTML, deprecates a front matter lookup pattern, and delivers a faster, more robust plainify plus assorted bug fixes.

The concrete changes:

  • Build now uses Go 1.27.3, which no longer trusts certain intermediate certificates, so remote HTTPS fetches via resources.GetRemote may fail against sites chaining through them.
  • Menu entries defined in front matter now have their pre and post values HTML escaped, unless text/html is listed in security.allowContent (which already marks HTML in the content directory as trusted).
  • A warning, warning-menu-pre-post-html-escaped, is logged when a value containing HTML markup is escaped. Menu entries defined in project configuration are unaffected.
  • Looking up reserved front matter fields via .Params is deprecated; use the dedicated methods instead.
  • plainify is now faster and more robust.
  • The release includes a set of bug fixes.

For developers, the certificate change is the one to watch: sites that pull remote assets or data at build time could start failing after upgrading, so verify your resources.GetRemote targets resolve through trusted chains. The menu escaping change reflects Hugo's stance that templates are trusted but content is not, meaning front-matter-authored pre/post menu values can no longer inject raw HTML by default. Audit any theme or config that relied on that behavior, and watch build logs for the new warning. The .Params deprecation is a good prompt to migrate custom templates now, before it becomes a breaking change.

Source: https://github.com/gohugoio/hugo/releases/tag/v0.169.0

Related

auto-curated · source linked above← all news