{"id":"CVE-2026-120439","published":"2026-11-02T14:29:01Z","modified":"2026-11-06T19:30:29Z","title":"QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort","vendor":"quickjs-ng","product":"QuickJS-NG","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00343,"percentile":0.2857,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6","tags":["vendor-advisory"]},{"url":"https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568","tags":["patch"]},{"url":"https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0","tags":["release-notes"]},{"url":"https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-heap-buffer-overflow-via-typedarray-prototype-sort","tags":["third-party-advisory"]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":5.71},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"quickjs-ng","affectedVersions":[{"vendor":"quickjs-ng","product":"QuickJS-NG","versions":["< 0.16.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-06T19:30:12.358583Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-115199","exploited":false,"provenance":"source"}}