Skip to content

Hugo Markdown titles do not escaped in internal render hooks

Moderate severity GitHub Reviewed Published Apr 23, 2024 in gohugoio/hugo • Updated Apr 24, 2024

Package

gomod github.com/gohugoio/hugo (Go)

Affected versions

>= 0.123.0, < 0.125.3

Patched versions

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

References

@bep bep published to gohugoio/hugo Apr 23, 2024
Published by the National Vulnerability Database Apr 23, 2024
Published to the GitHub Advisory Database Apr 23, 2024
Reviewed Apr 23, 2024
Last updated Apr 24, 2024

Severity

Moderate
6.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weaknesses

CVE ID

CVE-2024-32875

GHSA ID

GHSA-ppf8-hhpp-f5hj

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.