Nokogiri XSLT transform has a memory leak
Published: May 06, 2026
SECURITY IDENTIFIERS
- CVE: CVE-2026-79771 (NVD)
- GHSA: GHSA-v2fc-qm4h-8hqv
GEM
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
- https://nvd.nist.gov/vuln/detail/CVE-2026-79771
- https://rubygems.org/gems/nokogiri/versions/1.19.3
- https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md#v1193--2026-04-27
- https://www.vulncheck.com/advisories/nokogiri-before-memory-leak-via-xslt-transform
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-v2fc-qm4h-8hqv
- https://github.com/advisories/GHSA-v2fc-qm4h-8hqv
