Use After Free Affecting bellard/quickjs package, versions [,2025.09.13)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-BELLARDQUICKJS-13610753
  • published17 Oct 2025
  • disclosed16 Oct 2025
  • creditUnknown

Introduced: 16 Oct 2025

NewCVE-2025-62491  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade bellard/quickjs to version 2025.09.13 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the js_std_promise_rejection_check() function when iterating over the rejected_promise_list. An attacker can achieve arbitrary code execution or cause a crash by supplying a malicious Error object with a custom property getter that, when accessed, executes code to remove and free the current promise entry during iteration, leading to access of freed memory.

CVSS Base Scores

version 4.0
version 3.1