high

CVE

CVE-2026-118370, CVE-2026-115506, CVE-2026-117610, CVE-2026-113351, CVE-2026-111959, CVE-2026-120438, CVE-2026-120439, CVE-2026-120440

CWE

CWE-190, CWE-787, CWE-125, CWE-776, CWE-476, CWE-400, CWE-401

Affected Surface

  • C / C++ XML parser library `libexpat` (Expat) versions `<= 2.9.0` (`CVE-2026-118370`, `CVE-2026-115506`, `CVE-2026-117610`, and `CVE-2026-113351`, fixed in `libexpat 2.10.0`)
  • crates.io Apache Arrow Rust (`arrow`, `arrow-data`, and `arrow-array` crates) versions `>= 33.0.0, <= 57.3.1`, `>= 58.0.0, <= 58.4.0`, `>= 59.0.0, <= 59.3.1`, and `60.0.0` (`CVE-2026-111959`, fixed in `60.1.0`, `59.3.2`, `58.4.1`, and `57.3.2`)
  • C / WebAssembly JavaScript engine `QuickJS-NG` (`quickjs-ng/quickjs`) versions `< 0.16.0` (`CVE-2026-120438` / `GHSA-jp52-chwg-2p9p` CVSS 7.8 High, `CVE-2026-120439` / `GHSA-9wv5-5cgr-grj6` CVSS 7.0 High, and `CVE-2026-120440` / `GHSA-wm7w-r6qf-3c9w` CVSS 5.3 / 5.9 Medium, fixed in `v0.16.0`)

TL;DR

On 2 November 2026, oss-security, NVD, and the GitHub Advisory Database published eight vulnerabilities across three foundational libraries embedded in Python/Node.js runtimes, columnar data engines, and WebAssembly/IoT sandboxes:

  1. libexpat 2.10.0 patches four XML parser vulnerabilities (CVE-2026-118370, CVE-2026-115506, CVE-2026-117610, and CVE-2026-113351):
    • CVE-2026-118370 (PR #1450): In expat/lib/xmlparse.c, storeAtts() tracked attribute indices and namespace prefix counts in signed int variables (attIndex and nPrefixes), allowing signed integer overflow when storing parser->m_nSpecifiedAtts and parser->m_idAttIndex.
    • CVE-2026-115506 (PRs #1433, #1439, and #1442): Entity closure size scanning (scanEntityText()) did not skip <![CDATA[...]]>, <!--...-->, or <?...?> sections inside entity bodies and Improved Billion Laughs detection against compressed payloads generated by Hanno Böck’s lololol fuzzer.
    • CVE-2026-117610 (PR #1444): externalEntityInitProcessor2() did not handle XML_TOK_NONE on an initial non-final (!finalBuffer) empty XML_Parse call on a subparser, falling through and dereferencing a NULL pointer.
    • CVE-2026-113351 (PR #1431): XML_ParserReset() called parserInit(), which zeroed m_accounting.countBytesDirect via memset() while leaving m_alloc_tracker.bytesAllocated intact. Once a pooled parser processed a single well-formed document over 64 MiB, every subsequent XML_ParserReset() + XML_Parse() call on even a 25-byte document computed a >7,456,890x amplification ratio and failed permanently with XML_ERROR_NO_MEMORY. Worse, parserInit() also silently reset custom XML_SetBillionLaughsAttackProtection* thresholds back to defaults on every reset.
  2. Apache Arrow Rust (arrow / arrow-data / arrow-array) RunEndEncoded out-of-bounds read (CVE-2026-111959, reported by Ada Logics and Anthropic): In versions 33.0.0 through 60.0.0, ArrayData::check_run_ends() in arrow-data/src/data.rs checked that the last run-end value was >= len_plus_offset using the child run_ends array’s length and offset (self.len + self.offset) rather than the parent RunEndEncoded array’s logical offset + len (commit a9455d4a26), and From<ArrayData> for RunArray<R> in arrow-array/src/array/run_array.rs discarded run_end_offset and run_end_len when constructing ScalarBuffer::from(run_end_buffer) (commit ee9f2a38f6). Crafting a RunEndEncoded array via IPC/FFI or ArrayDataBuilder allowed reading memory past the bounds of the child values array. Fixed in 60.1.0, 59.3.2, 58.4.1, and 57.3.2.
  3. QuickJS-NG < 0.16.0 32-bit Proxy and TypedArray.prototype.sort heap buffer overflows (CVE-2026-120438 / GHSA-jp52-chwg-2p9p, CVSS 7.8 High; CVE-2026-120439 / GHSA-9wv5-5cgr-grj6, CVSS 7.0 High) and Atomics.store memory leak (CVE-2026-120440 / GHSA-wm7w-r6qf-3c9w, CVSS 5.3 / 5.9 Medium): On 32-bit and WebAssembly builds of QuickJS-NG, js_proxy_get_own_property_names() computed uint32_t n = len + extra_len without overflow checking before calling js_realloc(), and js_typed_array_sort() allocated its merge-sort index buffer with js_malloc(ctx, len * sizeof(array_idx[0])) (which wraps at len >= 2^30), leading to heap buffer overflows in both functions. Fixed in QuickJS-NG v0.16.0.

What to do now: Upgrade libexpat to >= 2.10.0, upgrade Apache Arrow Rust crates (arrow, arrow-data, arrow-array) to >= 60.1.0 (59.3.2, 58.4.1, or 57.3.2), and upgrade QuickJS-NG to >= v0.16.0.

Affected packages and libraries

EcosystemLibrary / CrateCVE / GHSASeverityAffected versionsFixed versionVulnerable component
C / C++libexpat (Expat)CVE-2026-118370High / Medium<= 2.9.02.10.0storeAtts() (attIndex and nPrefixes signed int overflow) in expat/lib/xmlparse.c
C / C++libexpat (Expat)CVE-2026-115506, CVE-2026-117610, CVE-2026-113351Medium<= 2.9.0 (113351 from 2.7.2)2.10.0scanEntityText(), externalEntityInitProcessor2(), and XML_ParserReset() / parserInit() in expat/lib/xmlparse.c
crates.io (Rust)arrow, arrow-data, arrow-arrayCVE-2026-111959Moderate33.0.0..57.3.1, 58.0.0..58.4.0, 59.0.0..59.3.1, 60.0.060.1.0, 59.3.2, 58.4.1, 57.3.2ArrayData::check_run_ends() (arrow-data/src/data.rs) and From<ArrayData> for RunArray<R> (arrow-array/src/array/run_array.rs)
C / WASMQuickJS-NG (quickjs-ng/quickjs)CVE-2026-120438 (GHSA-jp52-chwg-2p9p)CVSS 7.8 High< 0.16.00.16.0js_proxy_get_own_property_names() in quickjs.c
C / WASMQuickJS-NGCVE-2026-120439 (GHSA-9wv5-5cgr-grj6)CVSS 7.0 High< 0.16.00.16.0js_typed_array_sort() in quickjs.c
C / WASMQuickJS-NGCVE-2026-120440 (GHSA-wm7w-r6qf-3c9w)CVSS 5.3 / 5.9 Medium< 0.16.00.16.0js_atomics_store() (JS_CLASS_BIG_INT64_ARRAY / BIG_UINT64_ARRAY) in quickjs.c

Technical analysis

1. libexpat 2.10.0: storeAtts integer overflow (CVE-2026-118370) and XML_ParserReset lockout (CVE-2026-113351)

In expat/lib/xmlparse.c, storeAtts() populates the attribute array passed to the application’s start-element handler and records parser->m_nSpecifiedAtts and parser->m_idAttIndex. Prior to 2.10.0 (PR #1450), attIndex, nPrefixes, and the loop index i were declared as signed int:

--- a/expat/lib/xmlparse.c
+++ b/expat/lib/xmlparse.c
@@ -4168,9 +4168,9 @@ storeAtts(XML_Parser parser, const ENCODING *enc, const char *attStr,
           TAG_NAME *tagNamePtr, BINDING **bindingsPtr,
           enum XML_Account account) {
   DTD *const dtd = parser->m_dtd; /* save one level of indirection */
-  int attIndex = 0;
+  size_t attIndex = 0;
   XML_Char *uri;
-  int nPrefixes = 0;
+  size_t nPrefixes = 0;
...
@@ -4311,11 +4311,16 @@ storeAtts(XML_Parser parser, const ENCODING *enc, const char *attStr,
   /* set-up for XML_GetSpecifiedAttributeCount and XML_GetIdAttributeIndex */
-  parser->m_nSpecifiedAtts = attIndex;
+  // Detect and reject integer overflow
+  if (attIndex > INT_MAX)
+    return XML_ERROR_NO_MEMORY;
+  parser->m_nSpecifiedAtts = (int)attIndex;
   if (elementType->idAtt && (elementType->idAtt->name)[-1]) {
-    for (int i = 0; i < attIndex; i += 2)
+    for (size_t i = 0; i < attIndex; i += 2)
       if (appAtts[i] == elementType->idAtt->name) {
-        parser->m_idAttIndex = i;
+        if (i > INT_MAX)
+          return XML_ERROR_NO_MEMORY;
+        parser->m_idAttIndex = (int)i;
         break;
       }

Separately, CVE-2026-113351 (PR #1431, reported by @GeekQAQ) exposed two subtle interactions between XML_ParserReset() and Expat’s allocation tracker (m_alloc_tracker, added in 2.7.2) and Billion Laughs accounting (m_accounting):

  1. Permanent XML_ERROR_NO_MEMORY after parsing one >64 MiB document: When an application reuses an XML_Parser across requests by calling XML_ParserReset(p, NULL), Expat retains its internal attribute and string pools (so m_alloc_tracker.bytesAllocated stays above the 64 MiB default activationThresholdBytes if the previous document had a 70 MiB attribute). However, parserInit() ran memset(&parser->m_accounting, 0, sizeof(ACCOUNTING)), resetting countBytesDirect to 0. On the very next XML_Parse() call, expat_heap_increase_tolerable() divided the retained 134 MB newTotal by 18 direct input bytes (7,456,890.00 amplification vs. the 100.0 limit) and rejected every subsequent document with XML_ERROR_NO_MEMORY until the process freed the parser.
  2. Silent reset of custom Billion Laughs limits: Because parserInit() overwrote m_accounting.maximumAmplificationFactor and m_accounting.activationThresholdBytes unconditionally, any stricter limits configured via XML_SetBillionLaughsAttackProtectionMaximumAmplification() or XML_SetBillionLaughsAttackProtectionActivationThreshold() were wiped out on the first XML_ParserReset() call.

PR #1431 records bytesAllocatedWhenLastReset on XML_ParserReset(), subtracts that baseline in expat_heap_increase_tolerable(), and passes bool isReset to parserInit() so caller-configured Billion Laughs thresholds survive resets.

2. Apache Arrow Rust 60.1.0 (CVE-2026-111959): RunEndEncoded parent length and child offset mismatch

In Apache Arrow’s Run-End Encoded (RunEndEncoded) layout, a logical array of length L and offset O stores two child arrays: a strictly increasing run_ends array (giving the logical end index of each run) and a values array of the same physical length as run_ends. For every logical index in [O, O + L), binary search over run_ends maps the logical index to a physical slot in values.

Two bugs in arrow-data and arrow-array broke that invariant (CVE-2026-111959):

--- a/arrow-data/src/data.rs
+++ b/arrow-data/src/data.rs
@@ -1675,11 +1675,19 @@ impl ArrayData {
             DataType::RunEndEncoded(run_ends, _values) => {
+                let len_plus_offset =
+                    checked_len_plus_offset(&self.data_type, self.len, self.offset)?;
                 let run_ends_data = self.child_at(0)?;
                 match run_ends.data_type() {
-                    DataType::Int16 => run_ends_data.check_run_ends::<i16>(),
-                    DataType::Int32 => run_ends_data.check_run_ends::<i32>(),
-                    DataType::Int64 => run_ends_data.check_run_ends::<i64>(),
+                    DataType::Int16 => {
+                        run_ends_data.check_run_ends::<i16>(self.len, len_plus_offset)
+                    }
+                    DataType::Int32 => {
+                        run_ends_data.check_run_ends::<i32>(self.len, len_plus_offset)
+                    }
+                    DataType::Int64 => {
+                        run_ends_data.check_run_ends::<i64>(self.len, len_plus_offset)
+                    }
...
@@ -1856,10 +1868,9 @@ impl ArrayData {
-        let len_plus_offset = checked_len_plus_offset(&self.data_type, self.len, self.offset)?;
-        if prev_value.as_usize() < len_plus_offset {
+        if parent_len > 0 && prev_value.as_usize() < parent_len_plus_offset {
  1. Checking the child’s length instead of the parent’s (#11668, commit a9455d4a26): run_ends_data.check_run_ends() computed len_plus_offset from self (run_ends_data, the child array of physical run count 2) instead of the parent RunEndEncoded ArrayData. If run_ends was [1, 3] (physical length 2, last run end 3), check_run_ends() only checked 3 >= 2, allowing a caller to build a parent RunEndEncoded ArrayData with len = 100 (or offset = 2, len = 2).
  2. Ignoring run_end_offset when building RunArray from ArrayData (#11660, commit ee9f2a38f6): In arrow-array/src/array/run_array.rs, From<ArrayData> for RunArray<R> unpacked _run_end_len and _run_end_offset as unused variables and passed the raw run_end_buffer to ScalarBuffer::from(run_end_buffer) before calling unsafe { RunEndBuffer::new_unchecked(scalar, offset, len) }, reading unvalidated bytes before run_end_offset.

3. QuickJS-NG 0.16.0 (CVE-2026-120438, CVE-2026-120439, and CVE-2026-120440)

QuickJS-NG is frequently compiled to 32-bit WebAssembly (wasm32) or embedded on 32-bit microcontrollers to run untrusted JavaScript plugins and user scripts. In versions prior to 0.16.0:

  • Proxy ownKeys 32-bit addition wrap (CVE-2026-120438 / GHSA-jp52-chwg-2p9p, commit 252209d99c): In js_proxy_get_own_property_names() (quickjs.c), the engine combined the property count returned by a Proxy’s ownKeys trap (len) with extra_len using uint32_t arithmetic (uint32_t n = len + extra_len), wrapped around on 32-bit builds when len + extra_len >= 2^32, allocated a tiny js_realloc() buffer, and copied len + extra_len property atoms past the end of the heap chunk.
  • TypedArray.prototype.sort 32-bit multiplication wrap (CVE-2026-120439 / GHSA-9wv5-5cgr-grj6, commit e93cca6119): In js_typed_array_sort(), sorting a TypedArray with a custom comparator allocated a scratch index array via array_idx = js_malloc(ctx, len * sizeof(array_idx[0])) where sizeof(array_idx[0]) == 4. On 32-bit hosts (size_t is 32 bits), a Uint8Array of length 0x40000001 (2^30 + 1) wrapped len * 4 to 4 bytes, and the merge sort wrote 2^30 + 1 indices out of bounds.
  • Atomics.store BigInt leak (CVE-2026-120440 / GHSA-wm7w-r6qf-3c9w, commit 62951e1bc6): In js_atomics_store(), calling Atomics.store() on a BigInt64Array or BigUint64Array whose SharedArrayBuffer was detached or shrunk inside the value’s valueOf() callback returned a RangeError / TypeError without calling JS_FreeValue(ctx, val).

Detection and remediation

# 1. Check installed libexpat packages on Linux / container images
dpkg -l '*expat*' 2>/dev/null || rpm -qa '*expat*' 2>/dev/null || apk info -vv expat 2>/dev/null || true

# 2. Search Rust Cargo.lock files for vulnerable arrow / arrow-data / arrow-array versions
rg -n -A 2 'name = "arrow(-data|-array)?"' Cargo.lock 2>/dev/null

# 3. Search C/C++/WASM submodules and build manifests for quickjs-ng
rg -n 'quickjs-ng|quickjs\.c' CMakeLists.txt Makefile Cargo.toml package.json .gitmodules 2>/dev/null
  1. Upgrade libexpat to >= 2.10.0: If you backport the Billion Laughs entity-scanning fix (CVE-2026-115506) to an older branch, include follow-up PR #1439 alongside #1433.
  2. Upgrade Apache Arrow Rust to >= 60.1.0 (59.3.2, 58.4.1, or 57.3.2): Run cargo update -p arrow -p arrow-data -p arrow-array and verify your lockfile resolves to a patched maintenance train.
  3. Upgrade QuickJS-NG to >= v0.16.0: Any application embedding QuickJS-NG inside a 32-bit wasm32 sandbox (such as serverless edge workers, plugin sandboxes, or MCP code-execution tools) should rebuild its WASM module from v0.16.0.

Timeline

  • 2026-10-19 to 2026-10-23: Apache Arrow Rust merges PRs #11660 (ee9f2a38f6) and #11668 (a9455d4a26) and releases 57.3.2, 58.4.1, 59.3.2, and 60.1.0.
  • 2026-10-23 to 2026-10-29: libexpat merges PRs #1431, #1433, #1439, #1442, #1444, and #1450.
  • 2026-11-02: Sebastian Pipping releases libexpat 2.10.0 (CVE-2026-113351, CVE-2026-115506, CVE-2026-117610, CVE-2026-118370); Apache announces CVE-2026-111959 for Apache Arrow Rust on oss-security; and NVD publishes CVE-2026-120438, CVE-2026-120439, and CVE-2026-120440 for QuickJS-NG 0.16.0.

From research to remediation

Check whether this pattern exists in your codebase

Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.

References