vetkit.js.session.cookie-httponly-disabled
A session or authentication cookie is created with httpOnly: false. Any cross-site scripting bug can then read the cookie and hijack the session.
Last updated:
Suite: Security
javascript, typescript
A session or authentication cookie is created with httpOnly: false. Any cross-site scripting bug can then read the cookie and hijack the session.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Keep httpOnly: true (the default) for session and auth cookies; expose non-secret values to scripts through a separate cookie.
References
Source: packages/engine/rules/sast/javascript.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.