-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 issue #18
Comments
Doesn't seem like the onus to prevent this scenario should belong to typeahead.js. If you plan on using typeahead.js with untrusted data, you'll need to escape it beforehand. |
A hook for escaping the data should be provided atleast. |
v0.9 will have support filters for remote and prefetched data. You'll be able to use that as your hook. |
Closing as #25 will resolve it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script gets executed when given as an option
$('#sampleauto').typeahead({
name: 'accounts',
local: ['github', 'select2', 'typeahead', '<script>alert("github")</script>']
});
The text was updated successfully, but these errors were encountered: