CVE-2026-120439
QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort
CVSS Score
7.0
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-190 |
| Vendor | quickjs-ng |
| Product | quickjs-ng |
| Published | Nov 2, 2026 |
Stay Ahead of the Next One
Get instant alerts for quickjs-ng quickjs-ng
Be the first to know when new high vulnerabilities affecting quickjs-ng quickjs-ng are published — delivered to Slack, Telegram or Discord.
Get Free Alerts →
Free · No credit card · 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High
Affected Versions
quickjs-ng / QuickJS-NG
0 < 0.16.0
References
github.com: https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6 github.com: https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568 github.com: https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0 github.com: https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032 vulncheck.com: https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-heap-buffer-overflow-via-typedarray-prototype-sort
Credits
Tristan Madani (Talence Security) Saúl Ibarra Corretgé