Deny trace_events host-process abort DoS via NodeVM allowlist
fix: deny trace_events host-process abort DoS via NodeVM allowlist
Deny trace_events host-process abort DoS via NodeVM allowlistb3728f-fix-deny-trace-events-host-process-abort-dos-cve-2026-43999fixdeny trace events host process abort
Committed by patriksimek
commit message
fix: deny trace_events host-process abort DoS via NodeVM allowlist
`trace_events.createTracing({categories: [...]})` asserts
`args[0]->IsArray()` in V8 C++; sandbox code crossing the bridge makes
the array a Proxy, the IsArray() check fails, and the entire host
process aborts. Reproducible from sandbox in ~150 bytes under
`builtin: ['*']` — separate vulnerability class from the original
GHSA-947f-4v7f-x2v8 advisory (host-passthrough builtin escape) but
adjacent surface and same control point.
Adds `trace_events` to `DANGEROUS_BUILTINS` so it is dropped both from
the wildcard expansion (`BUILTIN_MODULES.filter`) and the explicit-name
path (`addDefaultBuiltin`). `mock`/`override` escape hatches remain
available for embedders who legitimately need a wrapper.
Adds 3 regression tests: makeBuiltins-level rejection,
wildcard-allowlist denial, and explicit-allowlist denial.Editor assessment
This commit patches CVE-2026-43999. The subject 'fix: deny trace_events host-process abort DoS via NodeVM allowlist' names the module, the outcome, and the enforcement point in under 72 characters, so it stands alone. The body adds the mechanism—V8 asserts IsArray on a proxied array and aborts the host process—notes the exploit is about 150 bytes under builtin ['*'], distinguishes this from GHSA-947f-4v7f-x2v8, and records that mock and override hatches stay open. Three regression tests are listed by level. Missing is a scope like nodevm or builtin and a footer tying the advisory formally, but the substance is publishable.