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.
Published: 2026-08-25
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Tue, 01 Sep 2026 15:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 25 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 25 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Sparklemotion
Sparklemotion nokogiri
Vendors & Products Sparklemotion
Sparklemotion nokogiri

Tue, 25 Aug 2026 15:30:00 +0000

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'}


Subscriptions

Nokogiri Nokogiri
Sparklemotion Nokogiri
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T17:44:08.629Z

Reserved: 2026-08-25T14:29:43.528Z

Link: CVE-2026-79771

cve-icon Vulnrichment

Updated: 2026-08-25T17:44:01.551Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-25T16:17:28.603

Modified: 2026-09-01T14:55:10.577

Link: CVE-2026-79771

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-25T15:16:03Z

Links: CVE-2026-79771 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T19:45:03Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-770

    Allocation of Resources Without Limits or Throttling