vetkit.js.session.cookie-secure-disabled
The session cookie is configured with secure: false. Browsers then also send it over plain HTTP, where it can be intercepted.
Last updated:
Suite: Security
javascript, typescript
The session cookie is configured with secure: false. Browsers then also send it over plain HTTP, where it can be intercepted.
Category: SECURITY · Engine rule severity: INFO
How to fix it
Set secure: true in production (behind a TLS-terminating proxy also enable trust proxy), for example secure: process.env.NODE_ENV === 'production'.
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.