Scan rule · RSC-SEC-020
Access token in localStorage
SecuritySeverity: MediumCWE-922
Observes at runtime whether a JWT-like value ends up in web storage — readable via XSS.
Scan tier
Browser runtime
How to fix it
Keep tokens in `HttpOnly` cookies instead of localStorage.