Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.cookies.secure-flag-disabled

The session or CSRF cookie is explicitly configured without the Secure flag, so it is also sent over plain HTTP.

Last updated:

Suite: Security

python

The session or CSRF cookie is explicitly configured without the Secure flag, so it is also sent over plain HTTP.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Set SESSION_COOKIE_SECURE / CSRF_COOKIE_SECURE to True in production settings.

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.