QuickJS-NG before 0.16.0 Memory Leak via Atomics.store
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 2, 2026
- Updated
- Nov 2, 2026
- Reserved
- Nov 2, 2026
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.
| Product | Versions |
|---|---|
| QuickJS-NG quickjs-ng | before 0.16.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | VulnCheck | |
| 3.1 | 5.3 Medium | VulnCheck |
Weaknesses
- CWE-401 Missing Release of Memory after Effective Lifetime
References
- GitHub Security Advisory (GHSA-wm7w-r6qf-3c9w)Vendor Advisory
- https://github.com/quickjs-ng/quickjs/commit/62951e1bc68711d37aad986ff84ef0fe17038a7ePatch
- QuickJS-NG v0.16.0 Release NotesRelease Notes
- https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L61154Technical Details
- VulnCheck Advisory: QuickJS-NG before 0.16.0 Memory Leak via Atomics.storeThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.