vetkit.py.drf.allow-any-default
Django REST framework's default permission class is AllowAny. Every API view without its own permission_classes is public.
Last updated:
Suite: Security
python
Django REST framework's default permission class is AllowAny. Every API view without its own permission_classes is public.
Category: SECURITY · Engine rule severity: INFO
How to fix it
Default to IsAuthenticated (or stricter) and opt public views out explicitly.
References
Source: packages/engine/rules/sast/python.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.