Why FastAPI Apps Get Hacked
FastAPI auto-generates an OpenAPI spec and interactive docs (/docs and /openapi.json), which is great for development and a gift to attackers in production. It maps your entire API surface. Combined with dependency-based auth that is easy to forget on a route and the usual IDOR risks, an exposed FastAPI service is a clear target. We scan exactly that surface.
Common FastAPI Vulnerabilities
Exposed OpenAPI docs
/docs, /redoc, and /openapi.json publish your complete endpoint list, parameters, and schemas — a full map for an attacker. Disable or protect them in production.
Missing auth on routes
FastAPI auth is a per-route dependency. Forget the Depends(...) on one endpoint and it is wide open while the rest look protected.
Broken object-level authorization (IDOR)
Path params like /items/{id} that fetch by ID without an ownership check let any authenticated user read others' data.
Permissive CORS
CORSMiddleware with allow_origins=["*"] plus allow_credentials enables cross-origin abuse of authenticated sessions.
Missing rate limiting & headers
No built-in rate limiting and no security headers; both must be added at the app or proxy layer.
What the Sable Scan Checks
Exposed secrets & API keys
We scan your client-side bundles and responses for leaked API keys, tokens, database URLs, and 100+ secret patterns that ship to the browser by accident.
Security headers & TLS
HSTS, CSP, X-Frame-Options, Referrer-Policy, Permissions-Policy, and TLS protocol/cipher configuration — graded A-F with copy-paste fixes.
CORS & access control
Overly permissive CORS, wildcard origins with credentials, and broken object-level authorization (IDOR/BOLA) where one user can reach another user's data.
Injection & API surface
SQL/NoSQL injection, exposed OpenAPI/Swagger specs, GraphQL introspection, mass assignment, missing rate limits, and excessive data exposure.
OWASP Top 10 coverage
Autonomous pentesting agents test against the full OWASP Top 10 2025, validate each finding with a proof-of-concept, and re-test after you fix.
Validated findings, not noise
Every reported issue is confirmed by an agent before it reaches you — so you get real, exploitable findings with severity and remediation, not scanner spam.
Scan Your FastAPI App in Minutes
Create a free account, point the agents at your app, and get validated findings with proof-of-concept and fix guidance. 150 founder credits, no credit card.
Get 150 Free Credits