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

exploitDog

github логотип

GHSA-x597-9fr4-5857

Опубликовано: 06 мая 2026
Источник: github
Github: Прошло ревью
CVSS4: 6.2

Описание

Hugo's Node tool execution allows file system access outside the project directory

Impact

When building a Hugo site that uses Node-based asset pipelines (PostCSS, Babel, TailwindCSS), Hugo invoked the configured Node tools without restrictions on file system access. As a result, executing hugo against an untrusted site could allow code running through these tools to read or write files outside the project's working directory.

Users who do not use PostCSS, Babel, or TailwindCSS, or who only build trusted sites, are not affected.

Patches

From v0.161.0, Hugo runs Node tools under Node's permission model with strict defaults: No write access and only read access to the site source directories and files.

Workarounds

Block these tools in security.exec.allow.

Пакеты

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

github.com/gohugoio/hugo

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

>= 0.43.0, < 0.161.0

0.161.0

EPSS

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

6.2 Medium

CVSS4

Дефекты

CWE-22

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

CVSS3: 8.1
ubuntu
3 месяца назад

Hugo is a static site generator. From 0.43 to before 0.161.0, when building a Hugo site that uses Node-based asset pipelines (PostCSS, Babel, TailwindCSS), Hugo invoked the configured Node tools without restrictions on file system access. As a result, executing hugo against an untrusted site could allow code running through these tools to read or write files outside the project's working directory. Users who do not use PostCSS, Babel, or TailwindCSS, or who only build trusted sites, are not affected. This vulnerability is fixed in 0.161.0.

CVSS3: 8.1
nvd
3 месяца назад

Hugo is a static site generator. From 0.43 to before 0.161.0, when building a Hugo site that uses Node-based asset pipelines (PostCSS, Babel, TailwindCSS), Hugo invoked the configured Node tools without restrictions on file system access. As a result, executing hugo against an untrusted site could allow code running through these tools to read or write files outside the project's working directory. Users who do not use PostCSS, Babel, or TailwindCSS, or who only build trusted sites, are not affected. This vulnerability is fixed in 0.161.0.

CVSS3: 8.1
debian
3 месяца назад

Hugo is a static site generator. From 0.43 to before 0.161.0, when bui ...

EPSS

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

6.2 Medium

CVSS4

Дефекты

CWE-22