CVE-2026-79771

Nokogiri before 1.19.3 Memory Leak via XSLT Transform

Published Aug 25, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Nokogiri versions before 1.19.3 leak memory when processing Ruby strings that contain null bytes through the XSLT Stylesheet transform method. The leak occurs because heap allocations are not released, which can drain available memory after repeated transformations. An attacker who supplies a crafted input containing null bytes to the transform parameters can trigger the leak and cause the application process to run out of memory, ultimately resulting in a denial‑of‑service for long‑running services. This vulnerability is a classic example of CWE-401, a memory leak flaw, and CWE-770, a large or arbitrary allocation flaw.

Affected Systems

Sparklemotion’s Nokogiri library, versions earlier than 1.19.3, is affected. Systems that include these versions and invoke XSLT transforms on user‑supplied strings that may contain null characters are at risk.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity, mainly impacting availability. The EPSS score is 0.00304 (<1%), and the issue is not listed in CISA KEV. An attacker can exploit the flaw by supplying a crafted input to the transform method, which is likely to occur in a Ruby application that accepts external data for XSLT processing. The attack is limited to environments where the attacker can influence the transform parameters, making it an application‑level attack rather than a network‑level vector.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Nokogiri 1.19.3 or later
  • Sanitize or validate input strings to eliminate null bytes before invoking the XSLT transform
  • Monitor memory usage and restart long‑running processes if abnormal growth is detected

Generated by OpenCVE AI on August 28, 2026 at 19:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-v2fc-qm4h-8hqv Nokogiri XSLT transform has a memory leak
History
Type Values Removed Values Added
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sparklemotion
Sparklemotion nokogiri
Vendors & Products Sparklemotion
Sparklemotion nokogiri
Type Values Removed Values Added
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.
Title Nokogiri before 1.19.3 Memory Leak via XSLT Transform
First Time appeared Nokogiri
Nokogiri nokogiri
Weaknesses CWE-401
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*
Vendors & Products Nokogiri
Nokogiri nokogiri
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 25, 2026, 5:44 PM
Reserved
Aug 25, 2026, 2:29 PM
Status
Analyzed
Published
Aug 25, 2026, 4:17 PM
Modified
Sep 1, 2026, 2:55 PM
Severity
Moderate
Public date
Aug 25, 2026, 3:16 PM