Skip to content
CVE PROGRAM SOURCE RECORD8.3 High

CVE-2026-120439

QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

quickjs-ng QuickJS-NG

Default version status: unaffected

  • 0 to < 0.16.0affected
pkg:github/quickjs-ng/quickjs

References