Add child_process to DANGEROUS_BUILTINS
fix(GHSA-pq68-rvw4-xp4r): add child_process to DANGEROUS_BUILTINS
Add child_process to DANGEROUS_BUILTINSd53e1c-fix-add-child-process-to-dangerous-builtins-cve-2026-93605fixadd child process dangerous builtins ghsa
Committed by patriksimek-bot
commit message
fix(GHSA-pq68-rvw4-xp4r): add child_process to DANGEROUS_BUILTINS
Root cause: the NodeVM hard denylist blocked every other host-process
launcher (cluster, worker_threads, node:test) but omitted child_process,
so `require: { builtin: ['*'] }`, `['*', '-fs']`, an explicit
`['child_process']`, and the `node:` spellings all handed the sandbox the
real host module, and one execSync call was host RCE. The omission was a
documented carve-out that was inconsistent with the rest of the list.
Fix (lib/builtin.js): child_process joins DANGEROUS_BUILTINS, so it is
filtered from the wildcard expansion, refused on explicit request in
addDefaultBuiltin, and covered by the family / node: normalization in
isDangerousBuiltin. Behavior change for trusted-script embedders: they
re-expose it through require.mock (applied ahead of the dangerous check),
either the real module or a narrower facade. Restores Defense
Invariant #13.
Tests: test/ghsa/GHSA-pq68-rvw4-xp4r/repro.js (7 cases incl. the mock
upgrade path).
Docs: Category 21 in docs/attacks/nodevm-require.md extended (point 8,
carve-out text reversed, detection rules and considered surfaces
updated), Category 35 caveat updated, index row and a defends-table row;
CHANGELOG [Unreleased].
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DNJCz7eZo8seYyQDd11EmbEditor assessment
This commit patches CVE-2026-93605. Strong body: it explains the documented child_process carve-out, the wildcard and explicit-allow paths that leaked the real host module, the one-execSync RCE consequence, and the mock-upgrade path for trusted embedders, with seven test cases. The subject is precise. The only formal problem is the GHSA identifier used as the scope, which is not a codebase area under CCv1, capping the score at 3. Formally the body is strong and separated; the GHSA-id scope is the sole violation capping it at 3.