[SECURITY] MEDIUM: No response size limits - potential memory exhaustion #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: MEDIUM
The code loads the entire API response into memory via
json.loads()without any size limits. If a malicious or compromised Polymarket API returned an extremely large JSON payload (gigabytes), the script could exhaust system memory.Location
scripts/browse.pylines 53, 79-81, 357-358, 393-403Recommended Fix
Add response size limits:
Reference
See
reviews/2026-03-25.mdSection 6.6