# CVE-2026-120440: QuickJS-NG before 0.16.0 Memory Leak via Atomics.store

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-11-02T14:29:02.038Z
- Modified: 2026-11-02T19:34:23.993Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- quickjs-ng QuickJS-NG: before 0.16.0

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-wm7w-r6qf-3c9w> (vendor-advisory)
- <https://github.com/quickjs-ng/quickjs/commit/62951e1bc68711d37aad986ff84ef0fe17038a7e> (patch)
- <https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0> (release-notes)
- <https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L61154> (technical-description)
- <https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-memory-leak-via-atomics-store> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-120440](https://www.cve.org/CVERecord?id=CVE-2026-120440), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-120440](https://nvd.nist.gov/vuln/detail/CVE-2026-120440), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-120440 · Whole record: https://cve.day/CVE-2026-120440.json · Rebuilt by cve.day 2026-11-25T22:59:48.183Z
