CVE-2025-62491CWE-416

CVE-2025-62491

High · published October 16, 2025

CVSS v3.1
8.8
EPSS
0%
Percentile
33.9
In the wild
Unconfirmed
What it is

⚡ A sneaky Use-After-Free vulnerability in the QuickJS engine could lead to unauthorized code execution during promise handling! 🚨 Think of it like a chef who keeps making dishes while flamboyantly tossing out one ingredient after another; if they accidentally rely on an ingredient that's already been discarded, the whole meal could turn into a disaster! 🍽️ An attacker could exploit this flaw to execute arbitrary JavaScript code, potentially leading to a complete compromise of the application. This could allow them to manipulate data, access sensitive information, or even take control of the user's session. It's a high-stakes game with serious consequences!

Put simply

Think of it like a chef who keeps making dishes while flamboyantly tossing out one ingredient after another; if they accidentally rely on an ingredient that's already been discarded, the whole meal could turn into a disaster! 🍽️ This Use-After-Free vulnerability occurs when the QuickJS engine's promise rejection handler tries to access a freed memory pointer during error reporting, allowing malicious code execution through custom property getters on rejected promises.

What to do

An attacker could exploit this flaw to execute arbitrary JavaScript code, potentially leading to a complete compromise of the application. This could allow them to manipulate data, access sensitive information, or even take control of the user's session. It's a high-stakes game with serious consequences! Update QuickJS to the latest version to patch this vulnerability immediately. Additionally, review your promise handling practices to ensure that rejected promises are managed appropriately and that memory is not accessed after being freed. Regular code audits can help identify similar issues! You've got this! Stay ahead of vulnerabilities by following these steps and keeping your code secure! 🛡️

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00407 · 33.9th percentile
Weakness
CWE-416 · Use After Free
Published
2025-10-16T20:15Z
Affected products (1)
ProductVersionsFixed in
quickjs_project/quickjs< 2025-09-132025-09-13
References (2)
EPSS history
Timeline
  • 16 OCT 15:51Z
    Use-after-free in js_std_promise_rejection_check in QuickJS
    cvelistv5