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

Published Oct 16, 2025
·
Updated

In quickjs, in jsprintobject, 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 jsprintvalue, 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 jsprintvalue call.

Affected Software

2 affected components
QuickJS QuickJS
Quickjs Project Quickjs<2025-09-13

Event History

Oct 16, 2025
CVE Published
via MITRE·03:51 PM
Data Sourced
via MITRE·03:51 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-62490?

CVE-2025-62490 has been classified as a medium severity vulnerability due to potential exploitation involving arbitrary code execution.

2

How do I fix CVE-2025-62490?

To fix CVE-2025-62490, update QuickJS to the latest version that addresses this issue as per official patches.

3

What systems are affected by CVE-2025-62490?

CVE-2025-62490 affects QuickJS versions where the js_print_object function inappropriately handles array resizing during printing.

4

Can CVE-2025-62490 allow remote code execution?

Yes, CVE-2025-62490 can potentially allow remote code execution if exploited through manipulated array printing.

5

What is the nature of the vulnerability in CVE-2025-62490?

The nature of CVE-2025-62490 involves side effects during the execution of attacker-defined callbacks while printing array values.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203