P2 · HighCVSS 7.0EPSS 0.5%
QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort
- CVE-2026-120439
- GHSA-xffc-9827-rpvc
- EUVD-2026-115199
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.
Text from the CVE.org record.
Recommendation
QuickJS-NG
- If you run a version before 0.16.0update to 0.16.0 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
QuickJS-NG
Affected versions Fixed in before 0.16.0 0.16.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.