Highlights
Denial of Service: 4 prior fixes. Scrutinize any change in this area.
pyrate_limiter/abstracts/bucket.py: most-fixed (2 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.
SQL Injection: Untrusted user-supplied item names were directly interpolated into SQL INSERT queries, enabling arbitrary command execution in the SQLite storage layer. Future backends must strictly utilize parameterized inputs.
SQL Injection: The Postgres database adapter dynamically formatted SQL statements with f-strings instead of safe identifiers and parameters, exposing the database to manipulation during bucket operations.
Denial of Service: An off-by-one bug in the waiting delay calculation logic caused high CPU consumption (100% busy-spinning) when rate-limiting constraints blocked concurrent threads.