CVE-2026-79771
Medium · 5.3CVSS
5.3
EPSS
0.4%
Published
Aug 25, 2026
CISA due date
—
Cloudanix analysis
A bug in a software library used for handling XML data can cause programs to slowly use up memory when given certain bad input, potentially making services unavailable.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
A memory leak occurs in the XSLT stylesheet transform method when Ruby strings containing null bytes are processed, leading to unreleased heap allocations that accumulate over repeated calls.
Why it matters to the business
Long-running applications using this library for XML transformations may experience gradual memory exhaustion, resulting in service degradation or crashes that disrupt operations.
How an attack unfolds
An attacker supplies specially crafted input containing null bytes to the transform method parameters, triggering repeated allocations without proper deallocation, eventually consuming available memory and causing denial of service.
How to fix it
Update Nokogiri to version 1.19.3 or later to address the memory leak in XSLT processing.
How to confirm the fix worked
Review application dependencies for Nokogiri version and test XSLT transform calls with null byte inputs to confirm no excessive memory growth.
Typical attack path
- Identify endpoints or functions accepting user input for XSLT transformation
- Craft input strings embedding null bytes
- Repeatedly invoke the transform operation
- Monitor for memory growth leading to process failure
How to detect it
Examine logs for repeated XSLT transform operations with anomalous input; monitor system memory metrics for unexplained growth in processes using the library.
What your security team should do
- Prioritize updating the Nokogiri library in all affected applications
- Implement input sanitization to remove null bytes from transformation inputs as a temporary measure
- Monitor memory usage in processes handling XSLT transformations
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-120678 A memory management flaw in the MongoDB C Driver's handling of compressed responses may… CWE-401
- CVE-2026-121512 Memory Leak with Amplification in µD3TN BPv6 EID Reference Handling allows… CWE-401
- CVE-2026-120440 QuickJS-NG before 0.16.0 contains a memory leak vulnerability in js_atomics_store() in… CWE-401
- CVE-2026-119286 GraphQL-core is a Python port of the GraphQL.js reference implementation. CWE-401
- CVE-2026-116157 ImageMagick before 7.1.2-33 contains a memory leak vulnerability in PerlMagick that fails… CWE-401
- CVE-2026-116158 ImageMagick before 7.1.2-33 contains a memory leak vulnerability in the magick compare… CWE-401
- CVE-2026-116159 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak in the… CWE-401
- CVE-2026-116156 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak caused by a… CWE-401