You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
security/cookie-flags and security/token-storage: rate higher and name the hosts when third-party scripts run on the site #2089
The payload served through Optimizely snippets on 16 November 2026 sent document.cookie to the attacker's server (Report URI write-up). Only cookies without HttpOnly are readable that way, and the write-up advises affected sites to treat session tokens in such cookies as exposed.
security/cookie-flags reports cookies set without HttpOnly, and security/token-storage reports tokens kept in web storage. Neither considers who else runs code on the site. The same missing flag is a much larger exposure on a site that loads a dozen third-party scripts than on one that loads none, and the finding reads the same on both.
Wanted
When third-party scripts run on the site, these findings say so, name the hosts, and rate higher.
Acceptance Criteria
A session-like cookie set without HttpOnly, on a site whose pages load third-party scripts, is reported one severity step higher than on a site with none, and the finding names the third-party script hosts that could read it (capped, with a count of the rest).
A token that security/token-storage finds in localStorage or sessionStorage gets the same treatment.
On a site with no third-party script, both rules report exactly as they do today, and their existing fixtures are unchanged.
The finding text does not call any vendor malicious. It states that any script on the page can read the value.
Fixtures cover both cases for both rules, and both docs pages describe the change.
Activity
feat(rules): rate cookie-flags and token-storage higher and name the …
docs(changelog): v0.0.191 stable wording for the #2089 cookie-flags b…