GitHub Advisoryadvisory · Go

GHSA-ppf8-hhpp-f5hj Hugo Markdown titles do not escaped in internal render hooks

MEDIUM Published 2024-04-23 Modified 2024-07-19 Official page ↗
Aliases
CVE-2024-32875
Ecosystem
Go
Packages
github.com/gohugoio/hugo
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2024-04-23

Affected packages

• Go github.com/gohugoio/hugo: >= 0.123.0, < 0.125.3 → fixed in 0.125.3

Description

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

Related

Alias · CVE (1)

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References