{"schema_version":"1.7.3","id":"GHSA-c2xf-9v2r-r2rx","published":"2024-12-09T20:44:50Z","modified":"2024-12-10T21:57:03.941580Z","aliases":["CVE-2024-55601","GO-2024-3314"],"summary":"Hugo does not escape some attributes in internal templates","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","affected":[{"package":{"name":"github.com/gohugoio/hugo","ecosystem":"Go","purl":"pkg:golang/github.com/gohugoio/hugo"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.123.0"},{"fixed":"0.139.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-c2xf-9v2r-r2rx/GHSA-c2xf-9v2r-r2rx.json"}}],"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"}],"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"},"severity":[{"type":"CVSS_V4","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"}]}