kcve.ai취약점 정보 · 내 자산 확인

CVE-2026-10618 Hugo 0.93.0 through 0.165.0 Stored Cross-Site Scripting via Unescaped Code-Fence Attribute Values

설명

Hugo's default fenced-code-block renderer writes attribute values taken from the code-fence info string into the rendered HTML without escaping them. New in markup/internal/attributes/attributes.go converts every attribute value from a byte slice to a string as it is stored, deliberately dropping the escaping that used to happen there, and RenderAttributes in the same file escapes only values that are still byte slices, so its escaping branch is never reached and every value is written verbatim. The function's documentation states that it performs HTML escaping of string attributes, which it does not. A quote inside an attribute value in the info string therefore terminates the attribute and allows a further attribute, including an event handler, to be placed on the wrapper element, and the script runs for every visitor who loads the page. This path is reached under the default configuration, with code fences enabled and without goldmark's unsafe setting or any custom render hook. Attribute names beginning with on are filtered when the attributes are parsed, so injection is achieved through the value rather than the name.

영향 받는 제품 제품 2개

  • gohugoio

    hugo

    영향 받는 버전

    • 0.93.0 이상 0.165.0 이하

    해결 버전

    해결된 버전 정보가 없습니다.

  • gohugo

    hugo

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 0.93.0 이상 0.165.0 미만

    해결 버전

    • 0.165.0 이상

참고 자료 5건

‹ 목록

점검 지원 범위 문의

도입 문의