Skip to content
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

Autocomplete strips html like suggestions #6327

Closed
FINDarkside opened this issue Apr 3, 2019 · 1 comment
Closed

Autocomplete strips html like suggestions #6327

FINDarkside opened this issue Apr 3, 2019 · 1 comment

Comments

@FINDarkside
Copy link

FINDarkside commented Apr 3, 2019

At the moment autocomplete component strips html like elements form the suggestions. If you run this in the home page:

  $(document).ready(function(){
    $('input.autocomplete').autocomplete({
      data: {
        "<div>apple</div>": null,
      },
    });
  });

I'd expect the autocomplete to match "<div" and so on, but it will only render "apple". It does not create the div element, so it's not XSS issue, but for some reason the component only renders "apple" even though it should render "<div>apple</div>"

@FINDarkside
Copy link
Author

FINDarkside commented Apr 3, 2019

Actually there is XSS vulnerability,. #6286

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

No branches or pull requests

1 participant