Security context

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

xiangsx/gpt4free-ts
master @ 9eb7eca
9
Fixes
0
CVEs
HIGH
Peak severity
44.4%
Coverage
Highlights
Denial of Service: 7 prior fixes. Scrutinize any change in this area.
utils/proxyAgent.ts: most-fixed (8 issues). Treat as high-risk during review.
3 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.

Sandbox Escape: Disabling the Chrome sandbox via command-line arguments exposed the host environment to arbitrary code execution during remote browser automation tasks. The sandbox must remain active to restrict compromised browser sessions from escaping to the underlying system.
Denial of Service: Failure to close launched Puppeteer browser instances and unused idle pages during startup or navigation errors directly led to severe resource exhaustion, hanging processes, and memory leaks.
Denial of Service: The lack of enforced HTTP and stream-reading timeouts allowed remote endpoints to keep connections open indefinitely, consuming available sockets and thread pools.