CVE-2026-10618
gohugo hugo
Patch priority
RegularFix with the next regular update.
- CVSS
- 5.4
- Severity
- 5.4
- EPSS
- 0.2 %
- Percentile
- 13
- Actively exploited
- not known
The traffic light combines CVSS (severity), EPSS (exploitation probability, FIRST) and CISA's KEV catalog. It does not replace your own assessment. More in the glossary
What do I need to do?
in plain wordsWho is affected?
Only those who run gohugo hugo. The vendor name tells you whether the product is in use at your place.
How dangerous is it?
- Attackable over the network – including from the internet if the device or service is reachable there.
- The attacker must already be logged in – this lowers the risk.
- It only works if someone plays along – e.g. opens a link or a file.
What to do?
- Include it in your next regular update.
- The vendor’s advisories (linked below) name the fixed version.
- If there is no update yet: keep the device or service off the internet (no port forwarding) and watch for the vendor’s announcement.
Generated automatically from the CVSS vector, KEV and EPSS – does not replace the vendor’s information. Terms explained
Description
NVDHugo'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.
- Vendor / product
- gohugo hugo
- Published
- 24.08.2026
- Modified
- 12.10.2026
- CWE
- CWE-79
- Status
- Analyzed
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Vendor updates
1- Red Hat: RHSA-2026:66266 – RHSA-2026:66266 hugo-0:0.166.0-0.1.hum1@aarch64 security update 10.09.2026 · Patch day
Sources: NVD (NIST), CISA KEV, EPSS (FIRST.org), vendors and authorities. No warranty.