Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-c54g-xjwj-8g82

Опубликовано: 16 июн. 2026
Источник: github
Github: Прошло ревью
CVSS4: 5.1

Описание

Hugo: XSS via text/html content files

Commit: e41a06447dDisallow HTML content by default Affected versions: all Hugo versions prior to v0.162.0. Fixed in: v0.162.0. Severity: Low to Medium, depending on threat model. Not an issue if you fully trust every file under /content and every content adapter you load.

Description. Hugo accepts content files in several markup formats. Files mapped to the text/html media type (typically .html files under /content, or pages produced by a content adapter that sets content.mediaType = "text/html") had their body emitted verbatim into the rendered page. A site that ingests HTML content from an untrusted source — for example, a CMS-backed editor, a content adapter pulling from an external API, or an automated import pipeline — could therefore be served stored cross-site scripting.

Mitigation. v0.162.0 introduces a security.allowContent whitelist with text/html denied by default. Sites that intentionally author HTML content can opt back in:

[security] allowContent = ['.*']

This only affects pages whose source file (or content adapter output) declares an HTML media type; Markdown, AsciiDoc, Org, Pandoc and reStructuredText content is unaffected.

Пакеты

Наименование

github.com/gohugoio/hugo

go
Затронутые версииВерсия исправления

< 0.162.0

0.162.0

EPSS

Процентиль: 8%
0.00185
Низкий

5.1 Medium

CVSS4

Дефекты

CWE-79

Связанные уязвимости

CVSS3: 6.1
ubuntu
около 1 месяца назад

Hugo is a static site generator. Prior to 0.162.0, Hugo accepts content files in several markup formats. Files mapped to the text/html media type (typically .html files under /content, or pages produced by a content adapter that sets content.mediaType = "text/html") had their body emitted verbatim into the rendered page. A site that ingests HTML content from an untrusted source could therefore be served stored cross-site scripting. This vulnerability is fixed in 0.162.0.

CVSS3: 6.1
nvd
около 1 месяца назад

Hugo is a static site generator. Prior to 0.162.0, Hugo accepts content files in several markup formats. Files mapped to the text/html media type (typically .html files under /content, or pages produced by a content adapter that sets content.mediaType = "text/html") had their body emitted verbatim into the rendered page. A site that ingests HTML content from an untrusted source could therefore be served stored cross-site scripting. This vulnerability is fixed in 0.162.0.

CVSS3: 6.1
debian
около 1 месяца назад

Hugo is a static site generator. Prior to 0.162.0, Hugo accepts conten ...

EPSS

Процентиль: 8%
0.00185
Низкий

5.1 Medium

CVSS4

Дефекты

CWE-79