Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L61154
- https://github.com/quickjs-ng/quickjs/commit/62951e1bc68711d37aad986ff84ef0fe170
- https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0
- https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-wm7w-r6qf-3c9w
- https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-memory-leak-via-at
FAQ
What is CVE-2026-120440?
CVE-2026-120440 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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 re...
How severe is CVE-2026-120440?
CVE-2026-120440 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-120440?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.