We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
:html formatter passes < symbols as is to resulting html, which may result in XSS vulnerability.
:html
<
[2] pry(main)> Differ.diff_by_line("foo", "<script>alert(1)</script>").format_as(:html) => "<del class=\"differ\"><script>alert(1)</script></del><ins class=\"differ\">foo</ins>"
As Differ operates on strings, not HTML fragments, IMHO, it should escape chunks of these strings in resulting html.
Using differ 0.1.2.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
:html
formatter passes<
symbols as is to resulting html, which may result in XSS vulnerability.As Differ operates on strings, not HTML fragments, IMHO, it should escape chunks of these strings in resulting html.
Using differ 0.1.2.
The text was updated successfully, but these errors were encountered: