Security context

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

encode/databases
master @ ae3fb16
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
databases/backends/postgres.py: most-fixed (1 issue). 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.

Auth Bypass: Concurrency issues in connection management can lead to the incorrect sharing of database connection and transaction states across different asyncio tasks. This state leakage can allow an unauthenticated or unauthorized task to reuse an existing, privileged database connection.
Denial of Service: Processing queries with dynamic or user-controlled datatypes can trigger unbounded growth of result processor mappings in global dictionaries, leading to memory exhaustion and denial of service.