# CVE-2025-62490: Use-after-free in js_print_object in QuickJS

- Severity: High 8.8 (CVSS:4.0, scored by Google) `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`
- 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.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-16T15:51:06.100Z
- Modified: 2026-10-19T16:10:00.260Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Google

## 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->records list, but once again, elements could be removed from the list during js_print_value call.

(As written by CVE List.)

## Affected

- js_print_object: from 2025-04-26 before 2025-09-13
- quickjs_project quickjs: before 2025-09-13

## Every score

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

## References

- <https://issuetracker.google.com/434196651> (exploit, issue-tracking)
- <https://bellard.org/quickjs/Changelog> (release-notes)

## Sources

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

---

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