CVE-2025-62491: Use-after-free in js_std_promise_rejection_check in QuickJS

Published Oct 16, 2025
·
Updated

A Use-After-Free (UAF) vulnerability exists in the QuickJS engine's standard library when iterating over the global list of unhandled rejected promises (ts->rejectedpromiselist).

The function jsstdpromiserejectioncheck attempts to iterate over the rejectedpromiselist to report unhandled rejections using a standard list loop.

The reason for a promise rejection is processed inside the loop, including calling jsstddumperror1(ctx, rp->reason).

If the promise rejection reason is an Error object that defines a custom property getter (e.g., via Object.defineProperty), this getter is executed during the error dumping process.

The malicious custom getter can execute JavaScript code that calls catch() on the same rejected promise being processed.

Calling catch() internally triggers jsstdpromiserejectiontracker, which then removes and frees the current promise entry (JSRejectedPromiseEntry) from the rejectedpromiselist.

Since the list iteration continues using the now-freed memory pointer (el), the subsequent loop access results in a Use-After-Free condition.

Affected Software

2 affected components
QuickJS QuickJS engine
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-62491?

CVE-2025-62491 is classified as a high severity vulnerability due to its potential to cause crashes and execute arbitrary code within the QuickJS engine.

2

How do I fix CVE-2025-62491?

To fix CVE-2025-62491, update to the latest version of the QuickJS engine where this vulnerability has been addressed.

3

What causes CVE-2025-62491?

CVE-2025-62491 is caused by a Use-After-Free vulnerability that occurs during the iteration over the global list of unhandled rejected promises.

4

Which software versions are affected by CVE-2025-62491?

CVE-2025-62491 affects versions of the QuickJS engine prior to the patch that resolves the Use-After-Free issue.

5

What are the potential impacts of CVE-2025-62491?

The potential impacts of CVE-2025-62491 include crashes, denial of service, and the possibility of arbitrary code execution in applications using the QuickJS engine.

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