Security context

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

node-modules/agentkeepalive
master @ 422e9fc
6
Fixes
0
CVEs
MEDIUM
Peak severity
80.0%
Coverage
Highlights
Denial of Service: 4 prior fixes. Scrutinize any change in this area.
lib/_http_agent.js: most-fixed (3 issues). Treat as high-risk during review.
0 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: Unbounded socket allocation and socket leaks can occur when socket counts are bypassed during ECONNRESET timeouts or option mutation, leading to rapid resource exhaustion. Developers must enforce strict socket count ceilings and clone option objects to prevent configuration bleed.
Denial of Service: Reused or idle keepalive sockets can hang indefinitely and consume file descriptors if socket timeouts are manually computed or misconfigured. Utilizing native socket deadlines is critical to prevent hung connection exhaustion.
Auth Bypass: Parsing errors during IPv6 extraction from HTTP Host headers can lead to incorrect TLS SNI routing, effectively skipping host verification checks. Strict canonicalization and prefix verification of the parsed hostname must be enforced.