Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.django.csrf-exempt-session-view

A view that relies on the logged-in user or session is marked @csrf_exempt. Other sites can make the victim's browser perform this action (CSRF).

Last updated:

Suite: Security

python

A view that relies on the logged-in user or session is marked @csrf_exempt. Other sites can make the victim's browser perform this action (CSRF).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Remove @csrf_exempt and send the CSRF token from the client, or authenticate the endpoint without cookies.

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.