NetSight
mittel5.1Noch keine CVE

GHSA-q76j-gcg9-vxc6

Hugo: XSS via unescaped code-fence language in default code block renderer

Auswirkung

Hugo's default code-block renderer wrote the Markdown code-fence language / info-string into the `<code class="language-…" data-lang="…">` wrapper without HTML escaping. A fence info-string containing a quote and a `<script>` payload breaks out of the attribute and injects a live script element. This is not an issue if you fully trust every file under /content and every content adapter you load.

Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, mit einem normalen Benutzerkonto, allerdings muss ein Nutzer beteiligt sein, etwa indem er Inhalte ansieht.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
gogithub.com/gohugoio/hugo>= 0.60.0, < 0.163.30.163.3

Schwachstellenklasse

Referenzen