Advisory

GHSA-ppf8-hhpp-f5hj

Also known as: CVE-2024-32875, GO-2024-2747

Summary

Hugo Markdown titles do not escaped in internal render hooks

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-04-23 21:16 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/gohugoio/hugo

Go · All systems

Affected

  • introduced 0.123.0, fixed 0.125.3 (semver)

Fixed versions

0.125.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences