CVE-2026-120439
published high CVSS 4.0 · 8.3QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| quickjs-ng | — | QuickJS-NG0 to < 0.16.0 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.0 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| quickjs-ng | QuickJS-NG | 0 to < 0.16.0 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-190 Integer Overflow or Wraparound
References
5- https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032
- https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568
- QuickJS-NG v0.16.0 Release Notes https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0
- GitHub Security Advisory (GHSA-9wv5-5cgr-grj6) https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6
- VulnCheck Advisory: QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-heap-buffer-overflow-via-typedarray-prototype-sort
Provider assertions
2VulnCheck · cna
QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a708cbcadec02a4fc98b8e2ad69fe8fc222713f05ab29f26e011fc1b1163e0fe
- Ingested
- 07 Nov 2026, 23:39:52 UTC
- Source record
- Official CVE record