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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-401"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120440.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.16.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "62951e1bc68711d37aad986ff84ef0fe17038a7e"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v0.16.0",
"range": [
{
"fixed": "10b99693cdc3f37cdf05114bc2d5225de495c4a3"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120440.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"26794975592830883413867835939149857455",
"338618453226194937208091226144655337185",
"121680045263283612703236071595196407259",
"196630242835266097324930308906220776017",
"26794975592830883413867835939149857455",
"338618453226194937208091226144655337185",
"121680045263283612703236071595196407259",
"196630242835266097324930308906220776017"
],
"threshold": 0.9
},
"id": "CVE-2026-120440-b4b1b151",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/quickjs-ng/quickjs/commit/62951e1bc68711d37aad986ff84ef0fe17038a7e",
"target": {
"file": "quickjs.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "241832184920931283517826630047682087090",
"length": 1300
},
"id": "CVE-2026-120440-d2e177c5",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/quickjs-ng/quickjs/commit/62951e1bc68711d37aad986ff84ef0fe17038a7e",
"target": {
"file": "quickjs.c",
"function": "js_atomics_store"
}
}
]
"2026-11-04T07:08:05Z"