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

exploitDog

github логотип

GHSA-v2fc-qm4h-8hqv

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

Описание

Nokogiri XSLT transform has a memory leak

Summary

Nokogiri's Nokogiri::XSLT::Stylesheet#transform leaks a small heap allocation when passed a Ruby string parameter containing a null byte.

For applications that pass attacker-controlled input through XSLT.transform parameters, this may be a vector for a denial of service attack against long-running processes.

Mitigation

Upgrade to Nokogiri >= 1.19.3.

Users may also be able to mitigate this issue without upgrading by validating untrusted transform parameters before passing them to Nokogiri::XSLT::Stylesheet#transform.

Severity

The Nokogiri maintainers have evaluated this as Moderate Severity, CVSS 5.3.

Each leaked allocation is approximately 24–32 bytes, so meaningful memory growth requires sustained attacker-controlled traffic at high call rates. The bug does not cause memory corruption, information disclosure, or any change in the behavior of the transform itself, and the string-handling exception is raised as expected.

Applications that do not pass raw attacker-controlled bytes to XSLT parameters are unlikely to be affected in practice.

Resources

Credit

This vulnerability was responsibly reported by @Captainjack-kor.

Пакеты

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

nokogiri

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

< 1.19.3

1.19.3

EPSS

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

5.3 Medium

CVSS3

Дефекты

CWE-401

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

CVSS3: 5.3
ubuntu
23 дня назад

Nokogiri versions before 1.19.3 contain a memory leak in the XSLT Stylesheet transform method when processing Ruby strings containing null bytes. Attackers can exploit this by passing attacker-controlled input with null bytes to transform parameters, causing heap allocations to leak and enabling denial of service against long-running processes.

CVSS3: 5.3
redhat
23 дня назад

Nokogiri versions before 1.19.3 contain a memory leak in the XSLT Stylesheet transform method when processing Ruby strings containing null bytes. Attackers can exploit this by passing attacker-controlled input with null bytes to transform parameters, causing heap allocations to leak and enabling denial of service against long-running processes.

CVSS3: 5.3
nvd
23 дня назад

Nokogiri versions before 1.19.3 contain a memory leak in the XSLT Stylesheet transform method when processing Ruby strings containing null bytes. Attackers can exploit this by passing attacker-controlled input with null bytes to transform parameters, causing heap allocations to leak and enabling denial of service against long-running processes.

CVSS3: 5.3
debian
23 дня назад

Nokogiri versions before 1.19.3 contain a memory leak in the XSLT Styl ...

EPSS

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

5.3 Medium

CVSS3

Дефекты

CWE-401