Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

cloudflare/capnweb
main @ 3f34bfd
5
Fixes
0
CVEs
HIGH
Peak severity
40.0%
Coverage
Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
src/serialize.ts: most-fixed (2 issues). Treat as high-risk during review.
4 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Denial of Service: Receiver-side deserialization lacked limits on message size, nesting depth, and BigInt digit length, enabling remote resource exhaustion.
Denial of Service: Shared long-lived Promise.race cancellation promise pinned every received WebSocket message in memory, causing unbounded growth and OOM.
Prototype Pollution: Error deserialization used a property bag that honored Object.prototype keys and a mutable prototype map, allowing prototype pollution and type confusion.