-
Notifications
You must be signed in to change notification settings - Fork 20
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 escaping completely removes src/href attributes on images and links #66
Comments
Relax the XSS sanitization to allow src attributes on images and href attributes on links fix #66
Adding a test for an anchor without a link, but with a title to improve branch code coverage fix #66
|
So if we follow the sling behavior, we actually can't even output html from the markdown inside the template it would seem… |
that would be weird, if In any case, once we add the DOM support (#62), we the XSS escaping become less important. |
Maybe our expectations are wrong, I'm not sure, but my tests clearly didn't let me inject any complex HTML via a variable. |
Relax the XSS sanitization to allow src attributes on images and href attributes on links fix #66
Adding a test for an anchor without a link, but with a title to improve branch code coverage fix #66
## [2.3.2](v2.3.1...v2.3.2) (2019-06-05) ### Bug Fixes * **xss:** Allow src/href attributes on images and links ([f99d0a5](f99d0a5)), closes [#66](#66)
🎉 This issue has been resolved in version 2.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
With #53 the XSS escaping introduced ends up being a bit too zealous and removes all:
src
attributes onimages
href
attributes onlinks
The text was updated successfully, but these errors were encountered: