GHSA-c2xf-9v2r-r2rx
Vulnerability from github
Published
2024-12-09 20:44
Modified
2024-12-10 15:33
Summary
Hugo does not escape some attributes in internal templates
Details

Impact

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

Patches

Patched in v0.139.4.

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.139.4
  • https://gohugo.io/about/security/
Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "Go",
        "name": "github.com/gohugoio/hugo"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0.123.0"
            },
            {
              "fixed": "0.139.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2024-55601"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-09T20:44:50Z",
    "nvd_published_at": "2024-12-09T22:15:23Z",
    "severity": "MODERATE"
  },
  "details": "## Impact\n\nSome 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.\n\n* `_default/_markup/render-link.html` from `v0.123.0`\n* `_default/_markup/render-image.html` from `v0.123.0`\n* `_default/_markup/render-table.html` from `v0.134.0`\n* `shortcodes/youtube.html` from `v0.125.0`\n\n## Patches\n\nPatched in v0.139.4.\n\n## Workarounds\n\nReplace with user defined templates or disable the internal templates: https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault\n\n## References\n\n* https://github.com/gohugoio/hugo/releases/tag/v0.139.4\n* https://gohugo.io/about/security/\n\n\n",
  "id": "GHSA-c2xf-9v2r-r2rx",
  "modified": "2024-12-10T15:33:23Z",
  "published": "2024-12-09T20:44:50Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/gohugoio/hugo/security/advisories/GHSA-c2xf-9v2r-r2rx"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-55601"
    },
    {
      "type": "WEB",
      "url": "https://github.com/gohugoio/hugo/commit/54398f8d572c689f9785d59e907fd910a23401b0"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gohugoio/hugo"
    },
    {
      "type": "WEB",
      "url": "https://github.com/gohugoio/hugo/releases/tag/v0.139.4"
    },
    {
      "type": "WEB",
      "url": "https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Hugo does not escape some attributes in internal templates"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.