-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XSS in href attribute, issue a warning #6423
Comments
@m1212e have you found resources for general mitigation? Because the OWASP sheets don't seem to contain good general advice in this specific case. |
I could probably look at any good html sanitizer |
It caught my attention while reading this article: https://lolware.net/blog/react-xss-protection-cheat-sheet/ |
We will not be addressing this in Svelte itself. We would need to add runtime checks to Svelte for it to be robust and there are better solutions to this problem. Security is down to the user. SvelteKit is the right place to solve this problem. |
This (see code snippet below) currently works without any warning etc.
Imagine test being user input. Since many developers just use frameworks for the comfort to not having to think about XSS and other security relevant things, maybe it would be a good idea to at least issue a warning to the console when this occurs? React acutally made this deprecated and plans to make it stop working.
The text was updated successfully, but these errors were encountered: