Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-109722 — Firefox SpiderMonkey use-after-free Value write: a non-strict this-boxing call lazily resolves a global constructor and reallocates the global's slots under a compiled store. Plain JS. Fixed in 158. | Kitploit
Tools/GitHubGitHub/scyrix-llc/cve-2026-109722
Vulnerability AnalysisExploitationWeb SecurityPapers & Research
GitHubscyrix-llc/cve-2026-109722

CVE-2026-109722

Firefox SpiderMonkey use-after-free Value write: a non-strict this-boxing call lazily resolves a global constructor and reallocates the global's slots under a compiled store. Plain JS. Fixed in 158.

View Repository
25 days agoNot yet reviewed
Website

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    885
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    796
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    629
  • 4

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    458
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    433
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    385

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-109722: Stale-slots use-after-free Value write

Summary

In non-strict JS, a primitive receiver flowing into this gets boxed: the engine wraps 1n in a BigIntObject so the callee sees an object. Warp compiles that as MBoxNonStrictThis, a fast path for receivers that are already objects and an out-of-line path that VM-calls BoxNonStrictThis down into js::PrimitiveToObject. To the compiler this is an inert conversion. It produces a wrapper object. It cannot change the shape of the world.

The people who wrote js::PrimitiveToObject knew something the optimizer did not. Boxing a primitive needs the wrapper constructor for its type, and if the global has never resolved that constructor, boxing resolves it: mid-script, from inside compiled code, it defines the BigInt property on the global object.

A call the optimizer treated as inert walks into the global and reallocates its slot array. That is the CVE.

Root cause

The chain, end to end:

  1. Warp compiles non-strict JSOp::FunctionThis to MBoxNonStrictThis. Receiver already an object: fast path. Primitive receiver: out-of-line path, VM call BoxNonStrictThis -> js::PrimitiveToObject.
  2. Boxing a BigInt needs the BigInt wrapper constructor. If the global never resolved it, js::PrimitiveToObject resolves it lazily, which defines the BigInt property on the global object.
  3. Defining a property on the global can grow its dynamic slot array. Sitting exactly at a capacity boundary, the addition reallocates: new allocation, new pointer, old array freed.
  4. The Ion-compiled caller had loaded the global's slots pointer before the call and kept it. MSlots is hoisted and CSE'd across the boxing call, because a boxing call cannot mutate the global. Except it just did.
  5. The next global-var store writes through the stale pointer into the freed slot array. A use-after-free Value write.

Reaching it from plain JS

The PoC's core, evaluated inside a fresh compartment so the wrapper starts unresolved:

let numGlobalProps = Object.keys(globalThis).length;
let padding = target - numGlobalProps;
var value = 0;
function nonStrict() { return this; }
function assign(receiver) {
  value = 1;                          // store A (before boxing call)
  var r = nonStrict.call(receiver);   // boxing: may resolve BigInt
  if (r) {
    value = 2;                        // store B: lost through stale slots
  }
  return r;
}

Three pieces of choreography make the miscompile visible:

  • A fresh compartment per run (newGlobal({newCompartment: true})) guarantees BigInt was never resolved there, so the boxing call has something to resolve.
  • The padding loop (globalThis["property" + i] = i) tunes the global's property count to a dynamic-slots capacity boundary, so the BigInt definition is the one property addition that tips the array into reallocation.
  • One hundred warm calls with an object receiver compile assign with the boxing path cold but present, then assign(1n) takes the out-of-line path for the first time.

The script scans candidate boundaries (target from 966 to 1025) because the capacity step is not directly observable from JS.

What you see

155.0 release shell:

$ js --no-threads --fast-warmup poc-157-cve-2026-109722.js
UAF SLOT WRITE (vulnerable) at target=1003: value=1 after store, boxed this is a valid BigIntObject (truthy=true, String=1)

Nothing failed. The boxing call returned a perfectly valid, truthy BigIntObject. The if was taken. Store B executed. It landed in the freed slot array, and value is still 1: the store that ran is the store that is gone. An instrumented run says the same thing in more detail:

FAIL at target=1003 value=1 boxedThis: type=object truthy=true isBigIntObj=true String=1

On a fixed main the scan is clean: every boundary candidate stores and reads back correctly, and the script prints nothing.

Primitive

This is a use-after-free write of a full tagged Value.

What occupies the freed array by the time store B lands is the obvious exploitation question. The PoC demonstrates the lost store; SpiderMonkey does not reclaim the allocation.

Download Tool