GHSA-ppf8-hhpp-f5hj
Hugo Markdown titles do not escaped in internal render hooks
Quick fix
GHSA-ppf8-hhpp-f5hj — github.com/gohugoio/hugo: upgrade to the fixed version with the command below.
go get github.com/gohugoio/hugo@v0.125.3Details
### Impact
Title argument in Markdown for links and images not escaped in internal render hooks. Impacted are Hugo users who have these hooks enabled and do not trust their Markdown content files.
### Patches
Patched in v0.125.3.
### Workarounds
Replace with user defined templates or disable the internal templates: https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault
### References
https://github.com/gohugoio/hugo/releases/tag/v0.125.3
Are you affected?
Enter the version of the package you're using.
Affected packages
0.123.0Fixed in: 0.125.3go get github.com/gohugoio/hugo@v0.125.3References
- https://github.com/gohugoio/hugo/security/advisories/GHSA-ppf8-hhpp-f5hj[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2024-32875[ADVISORY]
- https://github.com/gohugoio/hugo/commit/15a4b9b33715887001f6eff30721d41c0d4cfdd1[WEB]
- https://github.com/gohugoio/hugo[PACKAGE]
- https://github.com/gohugoio/hugo/releases/tag/v0.125.3[WEB]
- https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault[WEB]
- https://pkg.go.dev/vuln/GO-2024-2747[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/gohugoio/hugo"]}'