{
  "id": "CVE-2025-62490",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-62490",
  "published_at": "2025-10-16T15:51:06.1Z",
  "title": "Use-after-free in js_print_object in QuickJS",
  "vendor": "QuickJS",
  "product": "QuickJS",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms-\u003erecords list, but once again, elements could be removed from the list during js_print_value call.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:a:quickjs_project:quickjs:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "QuickJS",
        "product": "QuickJS",
        "ranges": [
          "\u003e= 2025-04-26, \u003c 2025-09-13"
        ],
        "fixed_in": [
          "2025-09-13"
        ]
      }
    ],
    "upgrade": [
      "Upgrade QuickJS to 2025-09-13 or later."
    ],
    "references": [
      {
        "kind": "Release notes",
        "url": "https://bellard.org/quickjs/Changelog"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
