{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.16.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "e93cca611908e12b824ec85fbee6b31a5ee61568"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v0.16.0",
                "range": [
                  {
                    "fixed": "10b99693cdc3f37cdf05114bc2d5225de495c4a3"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "10b99693cdc3f37cdf05114bc2d5225de495c4a3"
            },
            {
              "fixed": "e93cca611908e12b824ec85fbee6b31a5ee61568"
            }
          ],
          "repo": "https://github.com/quickjs-ng/quickjs",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-9wv5-5cgr-grj6"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120439.json"
  },
  "details": "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.",
  "id": "CVE-2026-120439",
  "modified": "2026-11-08T02:31:11.305298827Z",
  "published": "2026-11-02T14:29:01.345Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120439.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120439"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-heap-buffer-overflow-via-typedarray-prototype-sort"
    },
    {
      "type": "FIX",
      "url": "https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/quickjs-ng/quickjs"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort"
}