chore(deps): update dependency gohugoio/hugo to v0.170.1 #542

Open
botaniker wants to merge 1 commit from renovate/gohugoio-hugo-0.x into main
Member

This PR contains the following updates:

Package Update Change OpenSSF
gohugoio/hugo minor v0.169.0 → v0.170.1 OpenSSF Scorecard

Release Notes

gohugoio/hugo

v0.170.1

Compare Source

The primary motivation for this release is a bug fix for a performance regression introduces in v0.166.0 where we improved the return keyword in partial templates. Note that this was not an issue if you don't use this keyword and also only an issue for bigger sites.

What's Changed

v0.170.0

Compare Source

The big change in this release is that the extended edition of Hugo is gone. LibSass has been deprecated for a long time, and it was the only remaining reason we needed a CGO-enabled extended build. There is now only one Hugo binary, and apart from LibSass it has all the features the extended build had.

Notes
  • Setting transpiler to libsass in css.Sass now returns an error. Dart Sass is now the default and the only transpiler, so you need to install it if you use Sass.
  • We no longer publish hugo_extended_* archives. To avoid breaking existing CI setups, we publish aliases for the most downloaded extended archives (e.g. hugo_extended_<version>_linux-amd64.tar.gz, hugo_extended_<version>_Linux-64bit.tar.gz, the linux-amd64.deb, linux-arm64.tar.gz and windows-amd64.zip), but you should update your scripts to use the standard archives. The extended_withdeploy builds are also removed. See Installation.
  • hugo.IsExtended now always returns false, and the module config setting hugoVersion.extended is deprecated and has no effect.
  • Command-line flags (e.g. --buildDrafts) now override OS environment variables (e.g. HUGO_BUILDDRAFTS). This also fixes HUGO_ENVIRONMENT=qa hugo build -e staging loading the staging config but reporting qa in hugo.Environment.
  • strings.Truncate has been rewritten on top of a proper HTML scanner. It now handles comments, void elements, quoted attributes with > and raw text elements such as script correctly, and it's faster and allocates less. On a curious note, the old version was implemented by Mathias Biilmann, the Netlify CEO.
  • time.Time values now keep their named time zone, and eq, ne, in and uniq compare time.Time values by instant.
  • resources.Match and friends now preserve the directory casing in the matched paths, so e.g. resources.Match "gallery/Travel/Iceland/*" now works on case-sensitive file systems.
  • Syncing of static files is much faster for big unchanged files, as we now skip the content check for files with the same size and modification time.
  • Several fixes and hardening of the WASM based image codecs (AVIF crash at encoderSpeed 6 and lower, recovering from broken WASM instances in the server).
Security
Hugo
  • Passthrough content is now HTML escaped when no passthrough render hook is set, unless markup.goldmark.renderer.unsafe is enabled. Before this, e.g. \(<img src=x onerror=alert(1)>\) in a content file emitted raw HTML.
  • The wrapperClass option, settable from the highlight shortcode and transform.Highlight, is now escaped.
  • Vendored module paths are now restricted to the _vendor directory (symlinks pointing outside are rejected).

Thanks to @​R0X4R for finding and reporting the last two issues.

Go

This release is built with Go 1.27.4, which includes 12 security fixes. The one most relevant for Hugo is a crash in the net/http HTTP/1 server (used by hugo server) caused by a race in MaxBytesReader. The other 11 are in the cmd/go toolchain (cgo flag and linker injection at build time) and mainly matter if you build Hugo from source with untrusted dependencies.

Dependencies
  • golang.org/x/net v0.62.0 fixes two issues in the html package: quadratic complexity when coalescing text nodes, and a namespace issue when rendering raw text. Hugo uses this package when collecting HTML elements for hugo_stats.json and in the AsciiDoc integration.
  • github.com/go-jose/go-jose/v4 v4.1.6 (indirect dependency) contains a number of security fixes, among them GHSA-mgcc-cww5-fp2q (RSA modulus size limit when parsing JWKs) and a stack depth limit in the JSON decoder.
Changes
Dependency Updates
Documentation

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. The local configuration can be found in the SI Renovate Bot repository.

This PR contains the following updates: | Package | Update | Change | OpenSSF | |---|---|---|---| | [gohugoio/hugo](https://github.com/gohugoio/hugo) | minor | `v0.169.0` → `v0.170.1` | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/gohugoio/hugo/badge)](https://securityscorecards.dev/viewer/?uri=github.com/gohugoio/hugo) | --- ### Release Notes <details> <summary>gohugoio/hugo</summary> ### [`v0.170.1`](https://github.com/gohugoio/hugo/releases/tag/v0.170.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.170.0...v0.170.1) The primary motivation for this release is a bug fix for a performance regression introduces in [v0.166.0](https://github.com/gohugoio/hugo/releases/tag/v0.166.0) where we improved the `return` keyword in `partial` templates. Note that this was not an issue if you don't use this keyword and also only an issue for bigger sites. ##### What's Changed - deps: Upgrade github.com/bep/imagemeta v1.1.1 => v1.1.2 [`e6d7bcb`](https://github.com/gohugoio/hugo/commit/e6d7bcba) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Don't add file context to partial return sentinel errors [`5f34065`](https://github.com/gohugoio/hugo/commit/5f34065b) [@&#8203;bep](https://github.com/bep) [#&#8203;15604](https://github.com/gohugoio/hugo/issues/15604) - images: Add fgColor and bgColor options to images.QR and the qr shortcode [`93be9f1`](https://github.com/gohugoio/hugo/commit/93be9f1f) [@&#8203;bep](https://github.com/bep) [#&#8203;15600](https://github.com/gohugoio/hugo/issues/15600) - tpl/tplimpl: Cleanup vimeo shortcode comments and arg logic [`6c6b1ee`](https://github.com/gohugoio/hugo/commit/6c6b1eea) [@&#8203;jmooring](https://github.com/jmooring) - Delete hugolib/integrationtest_builder_test.go [`b8765e1`](https://github.com/gohugoio/hugo/commit/b8765e1f) [@&#8203;bep](https://github.com/bep) - tests: Address deprecation errors [`7a15e87`](https://github.com/gohugoio/hugo/commit/7a15e872) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.170.0`](https://github.com/gohugoio/hugo/releases/tag/v0.170.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.169.0...v0.170.0) The big change in this release is that **the *extended* edition of Hugo is gone**. LibSass has been deprecated for a long time, and it was the only remaining reason we needed a CGO-enabled extended build. There is now only one Hugo binary, and apart from LibSass it has all the features the extended build had. ##### Notes - Setting `transpiler` to `libsass` in [`css.Sass`](https://gohugo.io/functions/css/sass/) now returns an error. [Dart Sass](https://gohugo.io/functions/css/sass/#dart-sass) is now the default and the only transpiler, so you need to [install it](https://gohugo.io/functions/css/sass/#installation-overview) if you use Sass. - We no longer publish `hugo_extended_*` archives. To avoid breaking existing CI setups, we publish aliases for the most downloaded extended archives (e.g. `hugo_extended_<version>_linux-amd64.tar.gz`, `hugo_extended_<version>_Linux-64bit.tar.gz`, the `linux-amd64.deb`, `linux-arm64.tar.gz` and `windows-amd64.zip`), but you should update your scripts to use the standard archives. The `extended_withdeploy` builds are also removed. See [Installation](https://gohugo.io/installation/). - [`hugo.IsExtended`](https://gohugo.io/functions/hugo/isextended/) now always returns `false`, and the module config setting `hugoVersion.extended` is deprecated and has no effect. - Command-line flags (e.g. `--buildDrafts`) now override OS [environment variables](https://gohugo.io/configuration/introduction/#environment-variables) (e.g. `HUGO_BUILDDRAFTS`). This also fixes `HUGO_ENVIRONMENT=qa hugo build -e staging` loading the `staging` config but reporting `qa` in `hugo.Environment`. - [`strings.Truncate`](https://gohugo.io/functions/strings/truncate/) has been rewritten on top of a proper HTML scanner. It now handles comments, void elements, quoted attributes with `>` and raw text elements such as `script` correctly, and it's faster and allocates less. On a curious note, the old version was implemented by [Mathias Biilmann](https://github.com/biilmann), the Netlify CEO. - `time.Time` values now keep their named time zone, and [`eq`](https://gohugo.io/functions/compare/eq/), `ne`, `in` and `uniq` compare `time.Time` values by instant. - [`resources.Match`](https://gohugo.io/functions/resources/match/) and friends now preserve the directory casing in the matched paths, so e.g. `resources.Match "gallery/Travel/Iceland/*"` now works on case-sensitive file systems. - Syncing of static files is much faster for big unchanged files, as we now skip the content check for files with the same size and modification time. - Several fixes and hardening of the WASM based image codecs (AVIF crash at `encoderSpeed` 6 and lower, recovering from broken WASM instances in the server). ##### Security ##### Hugo - [Passthrough](https://gohugo.io/configuration/markup/#passthrough) content is now HTML escaped when no passthrough render hook is set, unless `markup.goldmark.renderer.unsafe` is enabled. Before this, e.g. `\(<img src=x onerror=alert(1)>\)` in a content file emitted raw HTML. - The `wrapperClass` option, settable from the [`highlight`](https://gohugo.io/shortcodes/highlight/) shortcode and [`transform.Highlight`](https://gohugo.io/functions/transform/highlight/), is now escaped. - [Vendored](https://gohugo.io/hugo-modules/use-modules/#vendor) module paths are now restricted to the `_vendor` directory (symlinks pointing outside are rejected). Thanks to [@&#8203;R0X4R](https://github.com/R0X4R) for finding and reporting the last two issues. ##### Go This release is built with Go 1.27.4, which [includes 12 security fixes](https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ). The one most relevant for Hugo is a crash in the `net/http` HTTP/1 server (used by `hugo server`) caused by a race in `MaxBytesReader`. The other 11 are in the `cmd/go` toolchain (cgo flag and linker injection at build time) and mainly matter if you build Hugo from source with untrusted dependencies. ##### Dependencies - `golang.org/x/net` v0.62.0 [fixes two issues in the `html` package](https://seclists.org/oss-sec/2026/q4/407): quadratic complexity when coalescing text nodes, and a namespace issue when rendering raw text. Hugo uses this package when collecting HTML elements for `hugo_stats.json` and in the AsciiDoc integration. - `github.com/go-jose/go-jose/v4` v4.1.6 (indirect dependency) contains a number of [security fixes](https://github.com/go-jose/go-jose/releases), among them GHSA-mgcc-cww5-fp2q (RSA modulus size limit when parsing JWKs) and a stack depth limit in the JSON decoder. ##### Changes - Remove libsass and the extended build tag [`c2f9cb8`](https://github.com/gohugoio/hugo/commit/c2f9cb82) [@&#8203;bep](https://github.com/bep) [#&#8203;15405](https://github.com/gohugoio/hugo/issues/15405) - Remove the extended build from the release [`0b66ebd`](https://github.com/gohugoio/hugo/commit/0b66ebd4) [@&#8203;bep](https://github.com/bep) [#&#8203;15502](https://github.com/gohugoio/hugo/issues/15502) - Fix typo in AGENTS.md [`588241b`](https://github.com/gohugoio/hugo/commit/588241bf) [@&#8203;pei711](https://github.com/pei711) - tpl/collections: Fix sort when some items lack the sort key [`a8a8e97`](https://github.com/gohugoio/hugo/commit/a8a8e978) [@&#8203;bep](https://github.com/bep) [#&#8203;15523](https://github.com/gohugoio/hugo/issues/15523) - warpc, commands: Fix Close of image dispatchers, recover in fast render [`3c2f52d`](https://github.com/gohugoio/hugo/commit/3c2f52d4) [@&#8203;bep](https://github.com/bep) [#&#8203;15522](https://github.com/gohugoio/hugo/issues/15522) - warpc: Fix AVIF encode crashing at encoderSpeed 6 and lower [`4742565`](https://github.com/gohugoio/hugo/commit/47425654) [@&#8203;bep](https://github.com/bep) [#&#8203;15522](https://github.com/gohugoio/hugo/issues/15522) - Fix misc layout lookup issues [`f3875ec`](https://github.com/gohugoio/hugo/commit/f3875ec3) [@&#8203;bep](https://github.com/bep) [#&#8203;15538](https://github.com/gohugoio/hugo/issues/15538) [#&#8203;15540](https://github.com/gohugoio/hugo/issues/15540) - tpl/collections: Fix merge of maps with concrete element types [`b76fde2`](https://github.com/gohugoio/hugo/commit/b76fde2f) [@&#8203;bep](https://github.com/bep) [#&#8203;15499](https://github.com/gohugoio/hugo/issues/15499) - tpl/tplimpl: Fix shortcode layout lookup in non-default output formats [`87e6e14`](https://github.com/gohugoio/hugo/commit/87e6e14c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15536](https://github.com/gohugoio/hugo/issues/15536) - langs/i18n: Fix project translations losing to module translations [`fa5a3d4`](https://github.com/gohugoio/hugo/commit/fa5a3d48) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15518](https://github.com/gohugoio/hugo/issues/15518) - Adjust Exif test to fix now failing deprecation tests [`471d0fb`](https://github.com/gohugoio/hugo/commit/471d0fb3) [@&#8203;bep](https://github.com/bep) - markup/goldmark: Escape passthrough content when no render hook is set [`e2f66a2`](https://github.com/gohugoio/hugo/commit/e2f66a23) [@&#8203;raghu45345](https://github.com/raghu45345) - tpl: Compare time.Time values by instant in eq, ne, in and uniq [`3519196`](https://github.com/gohugoio/hugo/commit/3519196b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15577](https://github.com/gohugoio/hugo/issues/15577) - Skip content check for static files with the same size and modification time [`afb2d9a`](https://github.com/gohugoio/hugo/commit/afb2d9ac) [@&#8203;bep](https://github.com/bep) [#&#8203;15572](https://github.com/gohugoio/hugo/issues/15572) - commands: Rebuild assets also mounted as static [`b755c9d`](https://github.com/gohugoio/hugo/commit/b755c9d5) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;15567](https://github.com/gohugoio/hugo/issues/15567) - hugolib: Keep npm installs in their test directory [`2056ed6`](https://github.com/gohugoio/hugo/commit/2056ed69) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;15568](https://github.com/gohugoio/hugo/issues/15568) - Upgrade to Go 1.27.4 [`bca2cec`](https://github.com/gohugoio/hugo/commit/bca2cec8) [@&#8203;bep](https://github.com/bep) - common/htime: Preserve location of time.Time values [`5922421`](https://github.com/gohugoio/hugo/commit/59224216) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;8895](https://github.com/gohugoio/hugo/issues/8895) [#&#8203;15565](https://github.com/gohugoio/hugo/issues/15565) - markup/highlight: Escape wrapperClass [`bdde5aa`](https://github.com/gohugoio/hugo/commit/bdde5aa5) [@&#8203;bep](https://github.com/bep) - modules: Restrict vendor module paths to the \_vendor directory [`d41a8a1`](https://github.com/gohugoio/hugo/commit/d41a8a19) [@&#8203;bep](https://github.com/bep) - hugofs: Preserve directory casing in resource matches [`5b44cfc`](https://github.com/gohugoio/hugo/commit/5b44cfce) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;7686](https://github.com/gohugoio/hugo/issues/7686) [#&#8203;10112](https://github.com/gohugoio/hugo/issues/10112) - config: Make command-line flags override OS environment variables [`d5ba1aa`](https://github.com/gohugoio/hugo/commit/d5ba1aaa) [@&#8203;bep](https://github.com/bep) [#&#8203;15549](https://github.com/gohugoio/hugo/issues/15549) [#&#8203;15550](https://github.com/gohugoio/hugo/issues/15550) - tpl/resources: Accept \[]any of resources in Concat [`e6a470c`](https://github.com/gohugoio/hugo/commit/e6a470cb) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15546](https://github.com/gohugoio/hugo/issues/15546) - warpc: Keep function names in WASM binaries, set WebP stack size [`1a014e5`](https://github.com/gohugoio/hugo/commit/1a014e53) [@&#8203;bep](https://github.com/bep) [#&#8203;15522](https://github.com/gohugoio/hugo/issues/15522) - warpc, commands: Recover from broken WASM instances in the server [`5086d5f`](https://github.com/gohugoio/hugo/commit/5086d5fc) [@&#8203;bep](https://github.com/bep) [#&#8203;15522](https://github.com/gohugoio/hugo/issues/15522) - resources: Resolve remote media type from Hugo's media types [`3a1985b`](https://github.com/gohugoio/hugo/commit/3a1985b1) [@&#8203;AnaTejeda1](https://github.com/AnaTejeda1) [#&#8203;11601](https://github.com/gohugoio/hugo/issues/11601) - langs/i18n: Add failing test for project translation precedence [`2b0e1e1`](https://github.com/gohugoio/hugo/commit/2b0e1e1e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15518](https://github.com/gohugoio/hugo/issues/15518) - ci: Upgrade setup-ruby and Ruby [`185a609`](https://github.com/gohugoio/hugo/commit/185a609e) [@&#8203;jmooring](https://github.com/jmooring) - tpl/strings: Rewrite truncate using the hhtml scanner [`6b0c89c`](https://github.com/gohugoio/hugo/commit/6b0c89c3) [@&#8203;bep](https://github.com/bep) [#&#8203;15505](https://github.com/gohugoio/hugo/issues/15505) [#&#8203;15509](https://github.com/gohugoio/hugo/issues/15509) ##### Dependency Updates - build(deps): bump golang.org/x/image from 0.47.0 to 0.48.0 [`29bcc86`](https://github.com/gohugoio/hugo/commit/29bcc86d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/text from 0.43.0 to 0.44.0 [`4f8354e`](https://github.com/gohugoio/hugo/commit/4f8354eb) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/pflag from 1.0.10 to 1.1.0 [`6aebad4`](https://github.com/gohugoio/hugo/commit/6aebad49) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.152.0 to 0.153.0 [`8846854`](https://github.com/gohugoio/hugo/commit/88468544) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bits-and-blooms/bitset [`0586add`](https://github.com/gohugoio/hugo/commit/0586add2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.24 to 2.24.25 [`45dfa4e`](https://github.com/gohugoio/hugo/commit/45dfa4e8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.8.6 to 1.8.7 [`d2010fc`](https://github.com/gohugoio/hugo/commit/d2010fcc) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.5.0 => v0.6.0 [`2d6cf3a`](https://github.com/gohugoio/hugo/commit/2d6cf3a8) [@&#8203;bep](https://github.com/bep) - deps: Upgrade github.com/bep/imagemeta v1.1.0 => v1.1.1 [`b6fa2fe`](https://github.com/gohugoio/hugo/commit/b6fa2fe5) [@&#8203;bep](https://github.com/bep) - build(deps): bump golang.org/x/net from 0.61.0 to 0.62.0 [`fe34313`](https://github.com/gohugoio/hugo/commit/fe34313e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.22 to 2.24.24 [`7ff95e0`](https://github.com/gohugoio/hugo/commit/7ff95e04) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/gobwas/glob from 1.0.0 to 1.1.0 [`98ab2ff`](https://github.com/gohugoio/hugo/commit/98ab2ff7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6 [`a1668da`](https://github.com/gohugoio/hugo/commit/a1668da3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - Update README.md [`8502b60`](https://github.com/gohugoio/hugo/commit/8502b600) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15512](https://github.com/gohugoio/hugo/issues/15512) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). The local configuration can be found in the [SI Renovate Bot repository](https://git.shivering-isles.com/shivering-isles/infrastructure-gitops/src/branch/main/apps/k8s01/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMzcuMyIsInVwZGF0ZWRJblZlciI6IjQ0LjI1Mi44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
chore(deps): update dependency gohugoio/hugo to v0.170.0
All checks were successful
go-lint Pipeline completed successfully
cf8c5ae3e4
botaniker changed title from chore(deps): update dependency gohugoio/hugo to v0.170.0 to chore(deps): update dependency gohugoio/hugo to v0.170.1 2026-11-18 06:07:57 +00:00
botaniker force-pushed renovate/gohugoio-hugo-0.x from cf8c5ae3e4
All checks were successful
go-lint Pipeline completed successfully
to 227fc18d6f 2026-11-18 06:07:57 +00:00
Compare
Some required checks are missing.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'renovate/gohugoio-hugo-0.x:renovate/gohugoio-hugo-0.x'
git switch 'renovate/gohugoio-hugo-0.x'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
shivering-isles/infrastructure-gitops!542
No description provided.