This release fixes a security issue reported by @ejona86 (see #12411) that could allow XSS injection from Markdown content files if one of the internal link or image render hook templates added in Hugo 0.123.0 are enabled. You typically control and trust the content files, but according to Hugo's security model, we state that "template and configuration authors (you) are trusted, but the data you send in is not."
markup/goldmark: Fix data race in the hugocontext wrapper 509ab08c1 @bep
tpl: Escape .Title in built-in image and link render hooks 15a4b9b33 @bep
.PageInner in render hooks to get the inner page when using .RenderShortcode in a shortcode, typically used to resolve links and page resources relative to an included Page.
Add Luminance to $image.Colors, allowing for sorting by luminance. e197c7b29 @bep#10450
This release is built with Go 1.22.2 (#12351) which comes with a fix for security issue CVE-2023-45288. We don't see how that could be exploited in Hugo, but we do appreciate that people want a clean security report.
Bug fixes
Fix server rebuilds when adding a content file on Linux fa60a2fbc @bep#12362
helpers: Fix TrimShortHTML when used with AsciiDoc content 6049ba99f @jmooring#12369
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/cosmtrek/air/network/alerts).
Bumps github.com/gohugoio/hugo from 0.123.3 to 0.125.3.
Release notes
Sourced from github.com/gohugoio/hugo's releases.
... (truncated)
Commits
474c4c0
releaser: Bump versions for release of 0.125.3509ab08
markup/goldmark: Fix data race in the hugocontext wrapper2d75f53
Delete .hugo_build.lock15a4b9b
tpl: Escape .Title in built-in image and link render hooks10a8448
tpl/tplimpl: Improve embedded templates722c486
SECURITY.md: Update link to security modelf40f50e
modules: Fix potential infinite loop in module collection4e483f5
releaser: Bump versions for release of 0.125.206d2489
Only add root sections to the section pages menu004b694
Fix partial rebuilds for SCSS fetched with GetMatch and similarDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show