Secure Cookie Attribute Not Set: Risk Explained
When a scan flags a secure cookie attribute not set issue, it means the browser is allowed to transmit that cookie over unencrypted HTTP as well as HTTPS. If a visitor follows an old http link or hits a downgraded connection on public Wi-Fi, session tokens can be sent in plain text and intercepted on the network. Adding the Secure attribute restricts the cookie to encrypted connections only.
What it is
Some of your cookies can be sent over plain, unencrypted HTTP, where anyone on the same network could read them.
Why it matters
Session or login cookies without Secure can leak on public Wi-Fi or through a downgraded connection, letting someone take over an account.
Meowdit rates this high risk.
How to tell if your site has it
- Open your browser developer tools, go to the Application (or Storage) tab, expand Cookies and inspect the Secure column; an unchecked box means the flag is missing.
- You can also check Set-Cookie response headers in the Network tab after loading the page or signing in to see whether Secure appears on each cookie.
- Inspect any cookies created by client-side scripts or tag managers as well, since browser-written cookies can miss the attribute even when server cookies set it.
- Other scanners commonly report this as 'Secure cookie attribute not set vulnerability' or 'Missing Secure attribute in encrypted session cookie'.
Fix direction
Enable the Secure flag centrally where your framework, authentication library or reverse proxy issues cookies for production traffic. If your app runs behind a TLS-terminating proxy, verify that it recognizes forwarded HTTPS requests so cookies are not dropped, and run a scan to get site-specific steps.
A scan gives you the steps specific to your site, plus a fix prompt you can paste into an AI tool. See what a report looks like: View the public example report
FAQ
- How do Secure, HttpOnly and SameSite differ?
- Secure keeps a cookie off plain HTTP connections on the wire. HttpOnly blocks page JavaScript from reading the cookie to reduce script-based theft, while SameSite controls whether cookies travel with cross-site requests to curb CSRF. Each protects a different layer, so none replaces the others.
- My site already runs on HTTPS. Why does the Secure attribute still matter?
- Even on an HTTPS site, a visitor typing a bare domain or clicking an outdated http link can trigger a single plain-HTTP request before any redirect happens. Without Secure, the browser attaches the cookie to that unencrypted request immediately.
- Does the Secure attribute break local development over HTTP?
- Modern browsers generally treat localhost as a trustworthy origin, so Secure cookies often still work there, though plain HTTP on custom local hostnames will reject them. Teams typically either toggle the flag by environment or run local HTTPS, depending on their setup.
References
Related checks
Related guides
All checks · View the public example report
This page was written and checked by AI and has not been reviewed by a person, so please verify before applying; see About Meowdit. Last updated: 2026-11-22