Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gohugoio/hugo
  4. ›
  5. CVE-2024-55601

CVE-2024-55601: Hugo does not escape some attributes in internal templates

December 9, 2024 (updated December 10, 2024)

Some HTML attributes in Markdown in the internal templates listed below not escaped. Impacted are Hugo users who do not trust their Markdown content files and are using one or more of these templates.

  • _default/_markup/render-link.html from v0.123.0
  • _default/_markup/render-image.html from v0.123.0
  • _default/_markup/render-table.html from v0.134.0
  • shortcodes/youtube.html from v0.125.0

References

  • github.com/advisories/GHSA-c2xf-9v2r-r2rx
  • github.com/gohugoio/hugo
  • github.com/gohugoio/hugo/commit/54398f8d572c689f9785d59e907fd910a23401b0
  • github.com/gohugoio/hugo/releases/tag/v0.139.4
  • github.com/gohugoio/hugo/security/advisories/GHSA-c2xf-9v2r-r2rx
  • gohugo.io/getting-started/configuration-markup/
  • nvd.nist.gov/vuln/detail/CVE-2024-55601

Code Behaviors & Features

Detect and mitigate CVE-2024-55601 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.123.0 before 0.139.4

Fixed versions

  • 0.139.4

Solution

Upgrade to version 0.139.4 or above.

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/gohugoio/hugo/CVE-2024-55601.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.