CVE-2026-120440

QuickJS-NG before 0.16.0 Memory Leak via Atomics.store

Published Nov 2, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
QuickJS-NG before 0.16.0 contains a memory leak vulnerability in js_atomics_store() in quickjs.c that fails to free the converted value when returning a RangeError. Attackers running JavaScript can repeatedly call Atomics.store with a valueOf that detaches or shrinks the buffer to exhaust heap memory and cause denial of service.

Analysis

AI-generated

Technical impact

QuickJS-NG before version 0.16.0 has a memory leak in the js_atomics_store function where the converted value is not freed when a RangeError is returned. This leak can be triggered repeatedly by JavaScript code that calls Atomics.store with a valueOf that detaches or shrinks the buffer, causing heap memory to be exhausted and the system to become unresponsive.

Affected Systems

The vulnerability affects the quickjs-ng QuickJS‑NG engine in any release prior to 0.16.0. Users of these earlier versions are exposed to the memory exhaustion flaw regardless of platform.

Risk and Exploitability

The CVSS score of 6.9 reflects a moderate severity impact. The EPSS score is very low, at < 1%, indicating a low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. Attackers need the ability to execute JavaScript code inside the QuickJS‑NG runtime; this can be provided by embedded applications or malicious scripts. Once the leak is triggered repeatedly, heap memory is exhausted, leading to denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade QuickJS‑NG to version 0.16.0 or later
  • If an immediate upgrade is impossible, restrict or audit use of Atomics.store and valueOf operations in JavaScript code
  • Monitor heap usage and restart the process when memory thresholds are exceeded

Generated by OpenCVE AI on November 4, 2026 at 13:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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
Metrics ssvc

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

Type Values Removed Values Added
Description QuickJS-NG before 0.16.0 contains a memory leak vulnerability in js_atomics_store() in quickjs.c that fails to free the converted value when returning a RangeError. Attackers running JavaScript can repeatedly call Atomics.store with a valueOf that detaches or shrinks the buffer to exhaust heap memory and cause denial of service.
Title QuickJS-NG before 0.16.0 Memory Leak via Atomics.store
First Time appeared Quickjs Project
Quickjs Project quickjs
Weaknesses CWE-401
CPEs cpe:2.3:a:quickjs_project:quickjs:*:*:*:*:*:*:*:*
Vendors & Products Quickjs Project
Quickjs Project quickjs
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-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 2, 2026, 5:33 PM
Reserved
Nov 2, 2026, 12:42 PM
Status
Awaiting Analysis
Published
Nov 2, 2026, 3:17 PM
Modified
Nov 2, 2026, 7:34 PM
Severity
Moderate
Public date
Nov 2, 2026, 2:29 PM