CVE-2026-79771 Nokogiri before 1.19.3 Memory Leak via XSLT Transform

Medium 6.9 Published Updated

Attackers can cause denial of service in applications using Nokogiri by triggering a memory leak via null bytes in XSLT transforms.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-79771?

CVE-2026-79771 is a medium-severity denial of service vulnerability in sparklemotion nokogiri, published on 25 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-401

Which versions are affected by CVE-2026-79771?

2 open source packages ship an affected version, including nokogiri. It affects 1 product.

PackageAffectedFixed in
nokogiri RubyGemsAll versions1.19.3
nokogiri RubyGemsAll versions1.19.3

Products include Nokogiri Nokogiri.

How do I fix CVE-2026-79771?

Upgrade nokogiri to 1.19.3 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-79771 being exploited?

There is no known exploitation of CVE-2026-79771 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2026-79771, DEBIAN-CVE-2026-79771, GHSA-v2fc-qm4h-8hqv, MINI-2mqp-3f9p-m5q4, MINI-2xr9-5pxm-ccjg, MINI-3p7g-7gj8-wgwj and 7 more.

Is CVE-2026-79771 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free