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.
https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6
https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0
https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568
https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032
Published: 2026-11-02
Updated: 2026-11-06
Base Score: 6.6
Vector: CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:C
Severity: Medium
Base Score: 7
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
Severity: High
Base Score: 8.3
Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
Severity: High
EPSS: 0.00343