-
Notifications
You must be signed in to change notification settings - Fork 60
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
User-controlled data is not escaped #38
Comments
This is worth addressing. The only way to protect against this consistently is to escape the arguments in I think an update to API is in order. It also opens up opportunities for node traversal/transformation as mentioned in #33. Something like this should work.
Then we can safely inject the HTML generated by |
Love the new interface, makes much more sense. |
Great! |
All
HTML4.generateDefaultTemplate
arguments are added directly to the raw HTML.While not a vulnerability per se, it opens up an attack vector against careless users who directly pass unsanitized user-generated values, which unfortunately is a common scenario.
Consider escaping these values as a best effort to protect Oy users.
The text was updated successfully, but these errors were encountered: