RubySec

Providing security resources for the Ruby community

CVE-2026-79771 (nokogiri): Nokogiri XSLT transform has a memory leak

Nokogiri XSLT transform has a memory leak

Published: May 06, 2026

SECURITY IDENTIFIERS

GEM

nokogiri

SEVERITY

CVSS v3.x: 5.3 (Medium)

PATCHED VERSIONS

>= 1.19.3

DESCRIPTION

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.

Credit

This vulnerability was responsibly reported by @Captainjack-kor.

RELATED