# CVE-2026-120439: QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort

- Severity: High 8.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-02T14:29:01.345Z
- Modified: 2026-11-06T20:17:17.073Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- quickjs-ng QuickJS-NG: before 0.16.0

## Every score

- VulnCheck: CVSS:4.0 8.3 High `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`
- VulnCheck: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`

## References

- <https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6> (exploit, vendor-advisory)
- <https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568> (patch)
- <https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0> (release-notes)
- <https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032> (technical-description)
- <https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-heap-buffer-overflow-via-typedarray-prototype-sort> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-120439](https://www.cve.org/CVERecord?id=CVE-2026-120439), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-120439](https://nvd.nist.gov/vuln/detail/CVE-2026-120439), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-120439 · Whole record: https://cve.day/CVE-2026-120439.json · Rebuilt by cve.day 2026-11-25T22:59:48.183Z
