Algolia: [GitHub Extension] Unsanitised HTML leading to XSS on

ID H1:220494
Type hackerone
Reporter ysx
Modified 2017-04-24T08:41:06



I noticed that certain HTML is unsanitised by the Awesome Autocomplete for GitHub extension, leading to a case of XSS on the GitHub website.

Please note that I do not have ownership nor affiliation with the repository and user names in this report, nor the final JavaScript alert dialog.

Proof of Concept

I have tested the following Proof of Concept demonstrations with the following conditions:


  • Latest version of the Awesome Autocomplete extension

Operating Systems

  • macOS Sierra 10.12.4
  • Windows 7 x64


  • Google Chrome 57.0.2987.133 (latest)
  • Safari 10.1 (latest)

Unsanitised HTML

Please follow the below steps to demonstrate the presence of an unsanitised HTML issue.

  1. Search for '"><img src=x onerror= on
  2. Note the broken <img> element and requests to "x" on

The following images demonstrate that a broken <img> element was created in the context of by the Algolia extension:



XSS on GitHub

Please follow the below steps to demonstrate the presence of a full XSS issue.

  1. Search for a'"><h1 on
  2. Because of a specific repository name being loaded, a JavaScript alert dialog will appear:


As noted above, I am currently attempting to reproduce this vulnerability using my own repositories and JavaScript code (e.g. document.domain rather than "1337").

Please let me know if you require any additional information regarding these vulnerabilities.