Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Mar 9, 2018

According to the validator.js documentation, XSS sanitization was removed from the library in late 2013. Because of this, I believe it makes sense to remove it as a suggestion from the SSR recipe. At the time, the maintainer suggested checking out Google Caja. I also did some searching on NPM and found the following two packages, both of which seem full featured and popular:

https://www.npmjs.com/package/xss
https://www.npmjs.com/package/xss-filters

Should we replace the suggestion with one of the alternatives above? Definitely open to suggestions — thanks!

@timdorr
Copy link
Member

timdorr commented Mar 9, 2018

Yeah, let's switch out the link instead. xss-filters looks good.

@ghost
Copy link
Author

ghost commented Mar 9, 2018

Hey Tim, I've gone ahead and added xss-filters as the suggested sanitization library. Thanks!

@timdorr
Copy link
Member

timdorr commented Mar 9, 2018

<script>document.write('Thanks!')</script>

@timdorr timdorr merged commit 33c63f2 into reduxjs:master Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants