QuickJS-NG before 0.16.0 contains an integer overflow in js_typed_array_sort() in quickjs.c that allows attackers to cause a heap buffer overflow on 32-bit hosts. Attackers who can run JavaScript can call TypedArray.prototype.sort with a comparator on a typed array near 2^30 elements, wrapping the allocation size and writing indices past the buffer to crash or potentially execute code.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-190"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120439.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.16.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "e93cca611908e12b824ec85fbee6b31a5ee61568"
}
],
"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-120439.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"15286093769480170670582367845851314640",
"163603996740099948821642844312771812146",
"118059557935465979911517266787079872008",
"159433073696150212746924227183103055031",
"21294674500470396758303638881997712664",
"305635793465283903878973068956905112042"
],
"threshold": 0.9
},
"id": "CVE-2026-120439-58ebf744",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568",
"target": {
"file": "api-test.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "339672367513411987082251834676199972784",
"length": 429
},
"id": "CVE-2026-120439-81d20ada",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568",
"target": {
"file": "api-test.c",
"function": "main"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"35622994652050402364432609390528171",
"72432646560561520657833473226900174891",
"44149737373700483082376133087661233687",
"187762416647858175456888421498465924703"
],
"threshold": 0.9
},
"id": "CVE-2026-120439-a440d6fb",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568",
"target": {
"file": "quickjs.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "134583724803942752108322502447683223025",
"length": 3373
},
"id": "CVE-2026-120439-a86dfbfa",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568",
"target": {
"file": "quickjs.c",
"function": "js_typed_array_sort"
}
}
]
"2026-11-08T07:05:58Z"