Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.cookies.session-httponly-disabled

The session cookie is configured without HttpOnly. Any XSS can then read the session cookie and hijack the account.

Last updated:

Suite: Security

python

The session cookie is configured without HttpOnly. Any XSS can then read the session cookie and hijack the account.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Remove SESSION_COOKIE_HTTPONLY = False; the framework default (True) is the safe value.

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.