Skip to content
Heist/ feed
Back to feed
Medium

Hugo doesn't escape markdown title in internal render hooks

Type: advisorySources: OSV

Hugo is a static site generator. Starting in version 0.123.0 and prior to version 0.125.3, title arguments in Markdown for links and images not escaped in internal render hooks. Hugo users who are impacted are those who have these hooks enabled and do not trust their Markdown content files. The issue is patched in v0.125.3. As a workaround, replace the templates with user defined templates or disable the internal templates.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-32875
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 13:45 UTC · Revision 1

Source evidence

Hugo doesn't escape markdown title in internal render hooks

core-osv · Original source

Published 23 Apr 2024, 20:23 UTC

Hugo is a static site generator. Starting in version 0.123.0 and prior to version 0.125.3, title arguments in Markdown for links and images not escaped in internal render hooks. Hugo users who are impacted are those who have these hooks enabled and do not trust their Markdown content files. The issue is patched in v0.125.3. As a workaround, replace the templates with user defined templates or disable the internal templates.

osv:CVE-2024-32875
Complete source record
{
  "id": "921ba3c4d4a989cd7abd8bde136d96b470f6d6c96962b8bfdc037fa98df23c93",
  "url": "https://osv.dev/vulnerability/CVE-2024-32875",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Hugo doesn't escape markdown title in internal render hooks",
    "summary": "Hugo is a static site generator. Starting in version 0.123.0 and prior to version 0.125.3, title arguments in Markdown for links and images not escaped in internal render hooks. Hugo users who are impacted are those who have these hooks enabled and do not trust their Markdown content files. The issue is patched in v0.125.3. As a workaround, replace the templates with user defined templates or disable the internal templates.",
    "evidence": "osv:CVE-2024-32875",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-32875",
      "aliases": [
        "CVE-2024-32875",
        "GHSA-ppf8-hhpp-f5hj",
        "GO-2024-2747"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gohugoio/hugo",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3c8a4713908e48e6523f058ca126710397aa4ed5"
                },
                {
                  "fixed": "474c4c02212cf97712c6fbf4159c68822ea6e078"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.123.0"
                      },
                      {
                        "fixed": "0.125.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "474c4c02212cf97712c6fbf4159c68822ea6e078"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.125.3"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32875.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:36.072696293Z",
      "provider": "osv",
      "references": [
        "https://github.com/gohugoio/hugo/releases/tag/v0.125.3",
        "https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32875.json",
        "https://github.com/gohugoio/hugo/security/advisories/GHSA-ppf8-hhpp-f5hj",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-32875"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79",
          "CWE-80"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32875.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-32875",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 503280,
  "published_at": "2024-04-23T20:23:42.535+00:00"
}