Choose Django when the app has users, permissions and an admin, FastAPI when it is a JSON API that waits on slow services, and keep Flask where it already runs. Patch before you compare: Django fixed six CVEs on 3 November 2026, and Starlette below 1.0.1, which FastAPI builds on, carries an authentication-bypass flaw that Security Arsenal reports CISA lists as exploited.123 Then pin FastAPI to one minor version, because Scout Monitoring counted nine breaking releases between 18 and 23 October.4
You need this if your team is starting a Python web service or weighing a move off one it already runs. You’re patched if you run Django 6.1.3, 6.0.10 or 5.2.19 (or later in your line) and Starlette 1.0.1 or later; Django releases older than 5.2 sit outside the supported list and got no fix.12 Flask needs 3.1.3 or later.5 Status as of 8 November 2026.