Defense-in-depth bridge hardening

fix: defense-in-depth bridge hardening
Defense-in-depth bridge hardening1035da-fix-defense-in-depth-bridge-hardening-cve-2026-44005fixdefense depth bridge hardening

Committed by patriksimek

commit message
fix: defense-in-depth bridge hardening

Three changes to lib/bridge.js, each independently low-risk and landing
as part of the v3.10.6 polish pass:
 
1. **AggregateError added to errorsList** (resolves GHSA-vwrp-x96c-mhwq
   doc drift). The result writeup and ATTACKS.md Cat 20 already listed
   AggregateError as protected, but it wasn't actually in the code's
   `errorsList`. Adding it makes the docs accurate, extends
   `protectedHostObjects` coverage to AggregateError.prototype +
   constructor, and extends `thisAddIdentityMapping` to its prototype.
 
2. **`nodejs.util.promisify.custom` added to symbol denylist**
   (defense-in-depth follow-up to GHSA-47x8-96vw-5wg6). Mirrors
   `nodejs.util.inspect.custom` and `nodejs.rejection`. No live exploit
   today, but the surface — host machinery invoking a sandbox-defined
   handler with host-realm arguments — is the same shape, so
   pre-emptive denial is cheap.
 
3. **`rebindHandlerConstructor` helper exposed** (closes
   GHSA-v37h-5mfm-c47c Layer-3 coverage gap). The original sentinel
   rebind covered the four core handler classes inside bridge.js but
   not subclasses defined in setup-sandbox.js (BufferHandler).

Editor assessment

This commit patches CVE-2026-44005. Three unrelated hardening changes are bundled here, and the subject 'fix: defense-in-depth bridge hardening' says only that much; without the body a reader cannot tell whether behavior changes for embedders. The body rescues it with numbered detail—AggregateError added to errorsList closing documentation drift, nodejs.util.promisify.custom denied pre-emptively, and rebindHandlerConstructor exposed for setup-sandbox subclasses. Each item names its advisory and rationale, which is strong. The breadth, though, means the subject cannot honestly summarize three changes, and no scope or footer is given. Acceptable, but a split or a more specific subject would publish better.

Browse categories

More fix examples · Back to search