chore(deps): update dependency hugo to v0.162.0#2143
Merged
Conversation
a3f0452 to
6517c30
Compare
Contributor
Author
|
40b0469 to
6ad01e3
Compare
6ad01e3 to
bf66e54
Compare
zeitlinger
approved these changes
May 28, 2026
jaydeluca
pushed a commit
that referenced
this pull request
Jun 4, 2026
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [hugo](https://redirect.github.com/gohugoio/hugo) | minor | `0.161.1` → `0.162.0` | --- ### Release Notes <details> <summary>gohugoio/hugo (hugo)</summary> ### [`v0.162.0`](https://redirect.github.com/gohugoio/hugo/releases/tag/v0.162.0) [Compare Source](https://redirect.github.com/gohugoio/hugo/compare/v0.161.1...v0.162.0) The notable new feature in this release is support for [AVIF images](https://gohugo.io/configuration/imaging/#avif-images) (both encoder and decoder). There's a [demo site](https://redirect.github.com/bep/hdrsdr.com) set up that demonstrates the difference between HDR AVIF and SDR JPEG images. Note that that demo is only really interesting if viewed on an HDR capable screen (e.g. Apple Retina). ##### Security fixes There are some notable security fixes in this release. ##### Security fixes in Go This release upgrades from Go 1.26.1 to 126.3, which brings a set of security fixes. Some relevant for Hugo are: - XSS in html/template (CVE-2026-39826 & CVE-2026-39823): Two separate vulnerabilities where escaper bypasses in html/template could lead to Cross-Site Scripting (XSS). - html/template: Fixes an issue where JS template literal contexts were incorrectly tracked across template branches, which could lead to improper content escaping. ##### Security fixes and hardening in Hugo The following changes either fix a concrete issue or reduce the default attack surface of `hugo` builds. - **Disallow `text/html` content files by default** ([e41a064](https://redirect.github.com/gohugoio/hugo/commit/e41a06447d)). A new `security.allowContent` policy gates which content media types may be used for pages under `/content`. `text/html` is denied by default; sites that rely on hand-authored or adapter-emitted HTML content can opt back in with `security.allowContent = ['.*']`. - **Re-check `security.http.urls` on every redirect hop in `resources.GetRemote`** ([86fbb0f](https://redirect.github.com/gohugoio/hugo/commit/86fbb0f7a8)). - **Reject symlinked entries in `resources.Get`** ([f8b5fa0](https://redirect.github.com/gohugoio/hugo/commit/f8b5fa09a6)). **We will update this section later with links to CVEs where applicable.** ##### All changes - hugolib: Fix Page.GitInfo for modules with go.mod in a repo subdirectory [`df54219`](https://redirect.github.com/gohugoio/hugo/commit/df542191) [@​bep](https://redirect.github.com/bep) [#​14942](https://redirect.github.com/gohugoio/hugo/issues/14942) - Fix typo in CONTRIBUTING.md [`4bc7cae`](https://redirect.github.com/gohugoio/hugo/commit/4bc7caea) [@​bep](https://redirect.github.com/bep) - resources: Fix the :counter placeholder [`5d51b82`](https://redirect.github.com/gohugoio/hugo/commit/5d51b82a) [@​jmooring](https://redirect.github.com/jmooring) [#​14921](https://redirect.github.com/gohugoio/hugo/issues/14921) - commands: Fix import from Jekyll [`81d7762`](https://redirect.github.com/gohugoio/hugo/commit/81d77620) [@​jmooring](https://redirect.github.com/jmooring) [#​14795](https://redirect.github.com/gohugoio/hugo/issues/14795) [#​14906](https://redirect.github.com/gohugoio/hugo/issues/14906) - Fix prevention of direct symlink reads in resources.Get [`f8b5fa0`](https://redirect.github.com/gohugoio/hugo/commit/f8b5fa09) [@​bep](https://redirect.github.com/bep) - commands: Fix github-dark chromastyles [`88d838a`](https://redirect.github.com/gohugoio/hugo/commit/88d838a9) [@​xndvaz](https://redirect.github.com/xndvaz) [#​14831](https://redirect.github.com/gohugoio/hugo/issues/14831) - Disallow HTML content by default [`e41a064`](https://redirect.github.com/gohugoio/hugo/commit/e41a0644) [@​bep](https://redirect.github.com/bep) - Add image processing support for AVIF [`90d9f81`](https://redirect.github.com/gohugoio/hugo/commit/90d9f812) [@​bep](https://redirect.github.com/bep) [#​7837](https://redirect.github.com/gohugoio/hugo/issues/7837) - config: Preserve intentionally empty maps [`80e6084`](https://redirect.github.com/gohugoio/hugo/commit/80e60847) [@​jmooring](https://redirect.github.com/jmooring) [#​14944](https://redirect.github.com/gohugoio/hugo/issues/14944) - hugolib: Merge existing hugo\_stats.json when renderSegments is set [`aeb9a5c`](https://redirect.github.com/gohugoio/hugo/commit/aeb9a5cc) [@​bep](https://redirect.github.com/bep) [#​14939](https://redirect.github.com/gohugoio/hugo/issues/14939) - all: Replace RWMutex struct caches with ConcurrentMap [`c4bbc28`](https://redirect.github.com/gohugoio/hugo/commit/c4bbc280) [@​bep](https://redirect.github.com/bep) - tpl/tplimpl: Consolidate and improve embedded template integration tests [`d8c7021`](https://redirect.github.com/gohugoio/hugo/commit/d8c70218) [@​jmooring](https://redirect.github.com/jmooring) [#​14932](https://redirect.github.com/gohugoio/hugo/issues/14932) - parser: Drop empty sub maps from hugo config output [`ee4f1ac`](https://redirect.github.com/gohugoio/hugo/commit/ee4f1acd) [@​bep](https://redirect.github.com/bep) [#​14855](https://redirect.github.com/gohugoio/hugo/issues/14855) - markup/highlight: Allow overriding type and code via options [`b613365`](https://redirect.github.com/gohugoio/hugo/commit/b6133657) [@​bep](https://redirect.github.com/bep) [#​11872](https://redirect.github.com/gohugoio/hugo/issues/11872) - Update AI assistance disclosure requirements [`d2c821b`](https://redirect.github.com/gohugoio/hugo/commit/d2c821b5) [@​bep](https://redirect.github.com/bep) - hugolib: Use AllTranslated in IsTranslated [`4ed7600`](https://redirect.github.com/gohugoio/hugo/commit/4ed7600f) [@​bep](https://redirect.github.com/bep) - tpl: Simplify sitemap template [`cbe4339`](https://redirect.github.com/gohugoio/hugo/commit/cbe4339a) [@​bep](https://redirect.github.com/bep) [#​14912](https://redirect.github.com/gohugoio/hugo/issues/14912) - tpl: Use AllTranslations in sitemap template [`6475d30`](https://redirect.github.com/gohugoio/hugo/commit/6475d308) [@​bep](https://redirect.github.com/bep) [#​14912](https://redirect.github.com/gohugoio/hugo/issues/14912) [#​14917](https://redirect.github.com/gohugoio/hugo/issues/14917) - tpl/collections: Make dict return nil when no values are provided [`67aede4`](https://redirect.github.com/gohugoio/hugo/commit/67aede43) [@​bep](https://redirect.github.com/bep) - Sync Go template package to 1.26.3 [`87f194b`](https://redirect.github.com/gohugoio/hugo/commit/87f194b2) [@​bep](https://redirect.github.com/bep) [#​14897](https://redirect.github.com/gohugoio/hugo/issues/14897) - Upgrade to Go 1.26.3 [`d81e3c2`](https://redirect.github.com/gohugoio/hugo/commit/d81e3c29) [@​bep](https://redirect.github.com/bep) [#​14897](https://redirect.github.com/gohugoio/hugo/issues/14897) - ci: Check embedded template formatting with gotmplfmt [`7c65a4d`](https://redirect.github.com/gohugoio/hugo/commit/7c65a4db) [@​bep](https://redirect.github.com/bep) - tpl: Run gotmplfmt -w . [`d31a927`](https://redirect.github.com/gohugoio/hugo/commit/d31a9275) [@​bep](https://redirect.github.com/bep) - markup/goldmark/codeblocks: Always split Chroma options into .Options [`c36608c`](https://redirect.github.com/gohugoio/hugo/commit/c36608c5) [@​jmooring](https://redirect.github.com/jmooring) [#​14909](https://redirect.github.com/gohugoio/hugo/issues/14909) - hugolib: Allow empty params front matter [`2f361a8`](https://redirect.github.com/gohugoio/hugo/commit/2f361a8e) [@​xndvaz](https://redirect.github.com/xndvaz) [#​14886](https://redirect.github.com/gohugoio/hugo/issues/14886) - common/hmaps: Merge slice-valued module config into site config [`5559263`](https://redirect.github.com/gohugoio/hugo/commit/55592633) [@​jmooring](https://redirect.github.com/jmooring) [#​13869](https://redirect.github.com/gohugoio/hugo/issues/13869) - tpl: Use GetMatch for both local and global image resources [`656fc04`](https://redirect.github.com/gohugoio/hugo/commit/656fc040) [@​bep](https://redirect.github.com/bep) [#​14062](https://redirect.github.com/gohugoio/hugo/issues/14062) - Revert "markup/tableofcontents: Skip empty TOC levels" [`a20cb5b`](https://redirect.github.com/gohugoio/hugo/commit/a20cb5b1) [@​bep](https://redirect.github.com/bep) [#​14898](https://redirect.github.com/gohugoio/hugo/issues/14898) - tpl/templates: Reject Defer inside partialCached [`4d775cb`](https://redirect.github.com/gohugoio/hugo/commit/4d775cbe) [@​bep](https://redirect.github.com/bep) [#​13492](https://redirect.github.com/gohugoio/hugo/issues/13492) - common/hexec: Make NODE\_PATH a fallback for ESM bare imports [`ae7bf74`](https://redirect.github.com/gohugoio/hugo/commit/ae7bf74b) [@​bep](https://redirect.github.com/bep) [#​13987](https://redirect.github.com/gohugoio/hugo/issues/13987) - config: Allow repeating the root key in /config files [`ba5d812`](https://redirect.github.com/gohugoio/hugo/commit/ba5d8126) [@​bep](https://redirect.github.com/bep) [#​12899](https://redirect.github.com/gohugoio/hugo/issues/12899) [#​14882](https://redirect.github.com/gohugoio/hugo/issues/14882) - Revise test naming guidelines in AGENTS.md [`be4a0df`](https://redirect.github.com/gohugoio/hugo/commit/be4a0df3) [@​bep](https://redirect.github.com/bep) - Update AGENTS.md [`e4cf565`](https://redirect.github.com/gohugoio/hugo/commit/e4cf565c) [@​bep](https://redirect.github.com/bep) - js: Return error for missing batch imports [`9e64953`](https://redirect.github.com/gohugoio/hugo/commit/9e649533) [@​xndvaz](https://redirect.github.com/xndvaz) [#​13737](https://redirect.github.com/gohugoio/hugo/issues/13737) - resources/images: Keep smart crop target size [`f0cfc28`](https://redirect.github.com/gohugoio/hugo/commit/f0cfc28c) [@​xndvaz](https://redirect.github.com/xndvaz) [#​13688](https://redirect.github.com/gohugoio/hugo/issues/13688) - testing: Use synctest where relevant [`16e854a`](https://redirect.github.com/gohugoio/hugo/commit/16e854a4) [@​bep](https://redirect.github.com/bep) - security: Validate redirects against security.http.urls [`86fbb0f`](https://redirect.github.com/gohugoio/hugo/commit/86fbb0f7) [@​bep](https://redirect.github.com/bep) [#​14871](https://redirect.github.com/gohugoio/hugo/issues/14871) - markup/tableofcontents: Skip empty TOC levels [`7d4af7a`](https://redirect.github.com/gohugoio/hugo/commit/7d4af7a1) [@​xndvaz](https://redirect.github.com/xndvaz) [#​7128](https://redirect.github.com/gohugoio/hugo/issues/7128) - Fall back to hugo.buildDate in hugo.BuildDate() in non-vcs builds [`28147cb`](https://redirect.github.com/gohugoio/hugo/commit/28147cb0) [@​bep](https://redirect.github.com/bep) [#​14862](https://redirect.github.com/gohugoio/hugo/issues/14862) - css: Make css.Build's file-loader URLs absolute to web context root [`e51e761`](https://redirect.github.com/gohugoio/hugo/commit/e51e761d) [@​bep](https://redirect.github.com/bep) [#​14849](https://redirect.github.com/gohugoio/hugo/issues/14849) - hugolib: Don't warn about lang/kind/path coming from cascade.params [`7011239`](https://redirect.github.com/gohugoio/hugo/commit/70112392) [@​bep](https://redirect.github.com/bep) [#​14848](https://redirect.github.com/gohugoio/hugo/issues/14848) - markup/goldmark: Unwrap inner HTML for plain code blocks [`694906f`](https://redirect.github.com/gohugoio/hugo/commit/694906f6) [@​cyphercodes](https://redirect.github.com/cyphercodes) [#​14820](https://redirect.github.com/gohugoio/hugo/issues/14820) - tpl/tplimpl: Extend page image lookup to include global resources [`d27b9c0`](https://redirect.github.com/gohugoio/hugo/commit/d27b9c06) [@​ogulcanaydogan](https://redirect.github.com/ogulcanaydogan) [#​14062](https://redirect.github.com/gohugoio/hugo/issues/14062) - security: Allow hostnames starting with digits in default http.urls [`62cef36`](https://redirect.github.com/gohugoio/hugo/commit/62cef367) [@​bep](https://redirect.github.com/bep) [#​14837](https://redirect.github.com/gohugoio/hugo/issues/14837) - commands: Improve description of command flags [`ff22c62`](https://redirect.github.com/gohugoio/hugo/commit/ff22c62a) [@​jmooring](https://redirect.github.com/jmooring) [#​14817](https://redirect.github.com/gohugoio/hugo/issues/14817) - build(deps): bump golang.org/x/net from 0.54.0 to 0.55.0 [`4f444c8`](https://redirect.github.com/gohugoio/hugo/commit/4f444c81) [@​dependabot](https://redirect.github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.40.0 to 0.41.0 [`fe6c726`](https://redirect.github.com/gohugoio/hugo/commit/fe6c7265) [@​dependabot](https://redirect.github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.137.0 to 0.138.0 [`6a2a038`](https://redirect.github.com/gohugoio/hugo/commit/6a2a0380) [@​dependabot](https://redirect.github.com/dependabot)\[bot] - build(deps): bump github.com/JohannesKaufmann/html-to-markdown/v2 [`cf1de59`](https://redirect.github.com/gohugoio/hugo/commit/cf1de598) [@​dependabot](https://redirect.github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.39.0 to 0.40.0 [`97f990c`](https://redirect.github.com/gohugoio/hugo/commit/97f990cc) [@​dependabot](https://redirect.github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.44.0 to 0.45.0 [`b99634e`](https://redirect.github.com/gohugoio/hugo/commit/b99634e2) [@​dependabot](https://redirect.github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 [`fdd977e`](https://redirect.github.com/gohugoio/hugo/commit/fdd977e9) [@​dependabot](https://redirect.github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.3.0 to 2.3.1 [`123018d`](https://redirect.github.com/gohugoio/hugo/commit/123018de) [@​dependabot](https://redirect.github.com/dependabot)\[bot] - deps: Upgrade to Chroma v2.24.1 [`b88fa8c`](https://redirect.github.com/gohugoio/hugo/commit/b88fa8cc) [@​bep](https://redirect.github.com/bep) [#​14839](https://redirect.github.com/gohugoio/hugo/issues/14839) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, 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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/prometheus/client_java). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTQuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE5NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.161.1→0.162.0Release Notes
gohugoio/hugo (hugo)
v0.162.0Compare Source
The notable new feature in this release is support for AVIF images (both encoder and decoder). There's a demo site set up that demonstrates the difference between HDR AVIF and SDR JPEG images. Note that that demo is only really interesting if viewed on an HDR capable screen (e.g. Apple Retina).
Security fixes
There are some notable security fixes in this release.
Security fixes in Go
This release upgrades from Go 1.26.1 to 126.3, which brings a set of security fixes. Some relevant for Hugo are:
Security fixes and hardening in Hugo
The following changes either fix a concrete issue or reduce the default attack surface of
hugobuilds.text/htmlcontent files by default (e41a064). A newsecurity.allowContentpolicy gates which content media types may be used for pages under/content.text/htmlis denied by default; sites that rely on hand-authored or adapter-emitted HTML content can opt back in withsecurity.allowContent = ['.*'].security.http.urlson every redirect hop inresources.GetRemote(86fbb0f).resources.Get(f8b5fa0).We will update this section later with links to CVEs where applicable.
All changes
df54219@bep #149424bc7cae@bep5d51b82@jmooring #1492181d7762@jmooring #14795 #14906f8b5fa0@bep88d838a@xndvaz #14831e41a064@bep90d9f81@bep #783780e6084@jmooring #14944aeb9a5c@bep #14939c4bbc28@bepd8c7021@jmooring #14932ee4f1ac@bep #14855b613365@bep #11872d2c821b@bep4ed7600@bepcbe4339@bep #149126475d30@bep #14912 #1491767aede4@bep87f194b@bep #14897d81e3c2@bep #148977c65a4d@bepd31a927@bepc36608c@jmooring #149092f361a8@xndvaz #148865559263@jmooring #13869656fc04@bep #14062a20cb5b@bep #148984d775cb@bep #13492ae7bf74@bep #13987ba5d812@bep #12899 #14882be4a0df@bepe4cf565@bep9e64953@xndvaz #13737f0cfc28@xndvaz #1368816e854a@bep86fbb0f@bep #148717d4af7a@xndvaz #712828147cb@bep #14862e51e761@bep #148497011239@bep #14848694906f@cyphercodes #14820d27b9c0@ogulcanaydogan #1406262cef36@bep #14837ff22c62@jmooring #148174f444c8@dependabot[bot]fe6c726@dependabot[bot]6a2a038@dependabot[bot]cf1de59@dependabot[bot]97f990c@dependabot[bot]b99634e@dependabot[bot]fdd977e@dependabot[bot]123018d@dependabot[bot]b88fa8c@bep #14839Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.