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.
Published: 2026-11-02
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

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 indicates a moderate severity impact. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers require the ability to execute JavaScript within the QuickJS-NG runtime, which is typically available to embedded system code or scripts. The lossy memory leak can be exploited to cause denial of service by exhausting available heap space.

Generated by OpenCVE AI on November 2, 2026 at 15:23 UTC.

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 2, 2026 at 15:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 02 Nov 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 02 Nov 2026 14:30:00 +0000

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


Subscriptions

Quickjs Project Quickjs
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-02T17:33:29.004Z

Reserved: 2026-11-02T12:42:15.887Z

Link: CVE-2026-120440

cve-icon Vulnrichment

Updated: 2026-11-02T17:12:52.775Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-02T15:17:26.103

Modified: 2026-11-02T19:34:23.993

Link: CVE-2026-120440

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-02T15:30:14Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime