CVE-2026-120438

QuickJS-NG before 0.16.0 Heap Buffer Overflow via Proxy ownKeys Enumeration

Published Nov 2, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
Description
QuickJS-NG before 0.16.0 contains an integer overflow in js_proxy_get_own_property_names() in quickjs.c that causes a heap buffer overflow on 32-bit hosts. Attackers running JavaScript can return a large array-like object from a Proxy ownKeys trap to wrap the allocation size, causing crashes or potential code execution.

Analysis

AI-generated

Technical impact

A buffer overflow results from an integer overflow in js_proxy_get_own_property_names between proxies and ownKeys traps, leading to heap corruption on 32‑bit hosts. An attacker that can execute JavaScript within QuickJS‑NG can engineer a Proxy whose ownKeys trap returns a very large array‑like object, causing a malformed allocation that may crash the engine or, in worst‑case, allow the attacker to execute arbitrary code. The vulnerability is identified as CWE‑190 (integer overflow) and CWE‑787 (out‑of‑bounds write).

Affected Systems

All builds of QuickJS‑NG version 0.15.1 and earlier, specifically running on 32‑bit platforms, are affected. The product is QuickJS‑NG, a lightweight JavaScript engine, and the issue is present in the core runtime before the 0.16.0 release. Users on 64‑bit hosts are not impacted because the overflow is limited to 32‑bit integer arithmetic.

Risk and Exploitability

The CVSS score of 8.5 places it in the high severity range, and the EPSS score of 0.0014 indicates a very low probability of exploitation, but the lack of a KEV listing does not reduce the need for action. The attack vector requires the attacker to run JavaScript in the vulnerable host, so compromise of the host or injection of custom scripts is necessary to trigger the flaw. If achieved, the bug could lead to denial of service through crashes or, depending on implementation, remote code execution via the corrupted heap. The impact is therefore significant for any service that embeds or executes untrusted JavaScript with QuickJS‑NG.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade QuickJS‑NG to version 0.16.0 or newer, which fixes the integer overflow.
  • If upgrading is not immediately possible, disable or limit the use of JavaScript Proxies, especially those that return large ownKeys arrays, or enforce size checks on returned arrays.
  • Monitor application logs and memory usage for signs of heap corruption or crashes, and apply any subsequent patches as they become available.

Generated by OpenCVE AI on November 6, 2026 at 15:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Quickjs-ng
Quickjs-ng quickjs
Vendors & Products Quickjs-ng
Quickjs-ng quickjs
Type Values Removed Values Added
Description QuickJS-NG before 0.16.0 contains an integer overflow in js_proxy_get_own_property_names() in quickjs.c that causes a heap buffer overflow on 32-bit hosts. Attackers running JavaScript can return a large array-like object from a Proxy ownKeys trap to wrap the allocation size, causing crashes or potential code execution.
Title QuickJS-NG before 0.16.0 Heap Buffer Overflow via Proxy ownKeys Enumeration
First Time appeared Quickjs Project
Quickjs Project quickjs
Weaknesses CWE-190
CPEs cpe:2.3:a:quickjs_project:quickjs:*:*:*:*:*:*:*:*
Vendors & Products Quickjs Project
Quickjs Project quickjs
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 9:38 PM
Reserved
Nov 2, 2026, 12:42 PM
Status
Awaiting Analysis
Published
Nov 2, 2026, 3:17 PM
Modified
Nov 5, 2026, 10:17 PM
Severity
Important
Public date
Nov 2, 2026, 2:29 PM