Add leak harvest history coverage (PoCs #1-6)

test(GHSA-v37h-5mfm-c47c): add leak harvest history coverage (PoCs #1-6)
Add leak harvest history coverage (PoCs #1-6)8d30d9-test-add-leak-harvest-history-coverage-pocs-cve-2026-24781testadd leak harvest history coverage pocs

Committed by patriksimek

commit message
test(GHSA-v37h-5mfm-c47c): add leak harvest history coverage (PoCs #1-6)

The advisory thread documents 8 escape attempts iterating through
bypasses against the util.inspect(showProxy:true) handler leak. PoC #7
is the canonical handler-class-reconstruction case covered by repro.js
+ invariant.js. PoCs #1-6 are earlier variants exercising different
primitives once the handler is leaked into `this.seen[1]`; they are
closed by intermediate fixes already on public main. This file ensures
those defenses do not regress.
 
Tests are gated to Node ≤ 22 because Node 24+ tightened argument
validation on Buffer.prototype.inspect/slice — the leak harvest never
fires regardless of the fix.

Editor assessment

This commit patches CVE-2026-24781. The body explains the advisory's eight escape attempts, identifies PoC #7 as the canonical handler reconstruction covered by repro.js and invariant.js, and frames PoCs #1-6 as earlier primitives already closed but now protected against regression. It even states why the suite is gated to Node 22 and below, since Node 24 tightened argument validation and the leak no longer fires—a genuinely useful constraint. Against that, the GHSA ID is doing duty as the scope, which is not a codebase section, and the parenthetical PoC range crowds the subject. Content is above average; framing keeps it at acceptable.

Browse categories

More test examples · Back to search